2022-01-07 09:06:18 +00:00
|
|
|
---
|
|
|
|
|
|
2023-07-28 15:16:50 +01:00
|
|
|
- name: Pre Audit Setup | Set audit package name
|
|
|
|
|
block:
|
2024-07-19 17:01:23 +01:00
|
|
|
- name: Pre Audit Setup | Set audit package name | 64bit
|
2024-08-13 08:25:10 +01:00
|
|
|
when: ansible_facts.machine == "x86_64"
|
2024-07-19 17:01:23 +01:00
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
audit_pkg_arch_name: AMD64
|
2023-07-28 15:16:50 +01:00
|
|
|
|
2024-07-19 17:01:23 +01:00
|
|
|
- name: Pre Audit Setup | Set audit package name | ARM64
|
2024-08-13 08:25:10 +01:00
|
|
|
when: ansible_facts.machine == "aarch64"
|
2024-07-19 17:01:23 +01:00
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
audit_pkg_arch_name: ARM64
|
2023-07-28 15:16:50 +01:00
|
|
|
|
|
|
|
|
- name: Pre Audit Setup | Download audit binary
|
2024-08-13 08:25:10 +01:00
|
|
|
when: get_audit_binary_method == 'download'
|
2023-01-13 12:10:18 +00:00
|
|
|
ansible.builtin.get_url:
|
2024-07-19 17:01:23 +01:00
|
|
|
url: "{{ audit_bin_url }}{{ audit_pkg_arch_name }}"
|
|
|
|
|
dest: "{{ audit_bin }}"
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
checksum: "{{ audit_bin_version[audit_pkg_arch_name + '_checksum'] }}"
|
|
|
|
|
mode: '0555'
|
2022-01-07 09:06:18 +00:00
|
|
|
|
2023-11-21 09:49:36 +00:00
|
|
|
- name: Pre Audit Setup | Copy audit binary
|
2024-08-13 08:25:10 +01:00
|
|
|
when: get_audit_binary_method == 'copy'
|
2023-01-13 12:10:18 +00:00
|
|
|
ansible.builtin.copy:
|
2024-07-19 17:01:23 +01:00
|
|
|
src: "{{ audit_bin_copy_location }}"
|
|
|
|
|
dest: "{{ audit_bin }}"
|
|
|
|
|
mode: '0555'
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|