mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
30 lines
580 B
YAML
30 lines
580 B
YAML
---
|
|
|
|
- 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'
|