forked from ansible-lockdown/RHEL9-CIS
Added git install to step
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
9368c1e17e
commit
cbb5ff7cc2
1 changed files with 8 additions and 0 deletions
|
|
@ -20,3 +20,11 @@
|
||||||
group: root
|
group: root
|
||||||
when:
|
when:
|
||||||
- get_goss_file == 'copy'
|
- get_goss_file == 'copy'
|
||||||
|
|
||||||
|
- name: install git if not present
|
||||||
|
package:
|
||||||
|
name: git
|
||||||
|
state: present
|
||||||
|
register: git_installed
|
||||||
|
when:
|
||||||
|
- '"git" not in ansible_facts.packages'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue