RHEL9-CIS/tasks/LE_audit_setup.yml

31 lines
580 B
YAML
Raw Normal View History

---
- name: Download audit binary
get_url:
url: "{{ goss_url }}"
dest: "{{ audit_bin }}"
owner: root
group: root
checksum: "{{ goss_version.checksum }}"
mode: 0555
when:
- get_goss_file == 'download'
- name: copy audit binary
copy:
src:
dest: "{{ audit_bin }}"
mode: 0555
owner: root
group: root
when:
- 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'