mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Removed python 2/3 checks for rh7/8
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
d5cce24f00
commit
63c82f8305
1 changed files with 5 additions and 21 deletions
|
|
@ -13,27 +13,11 @@
|
|||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Pre Audit | If using git for content set up
|
||||
block:
|
||||
- name: Pre Audit | Install git (rh8 python3)
|
||||
package:
|
||||
name: git
|
||||
state: present
|
||||
when: ansible_distribution_major_version == 8
|
||||
|
||||
- name: Pre Audit | Install git (rh7 python2)
|
||||
package:
|
||||
name: git
|
||||
state: present
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ python2_bin }}"
|
||||
when: ansible_distribution_major_version == 7
|
||||
|
||||
- name: Pre Audit | retrieve audit content files from git
|
||||
git:
|
||||
repo: "{{ audit_file_git }}"
|
||||
dest: "{{ audit_conf_dir }}"
|
||||
version: "{{ audit_git_version }}"
|
||||
- name: Pre Audit | retrieve audit content files from git
|
||||
git:
|
||||
repo: "{{ audit_file_git }}"
|
||||
dest: "{{ audit_conf_dir }}"
|
||||
version: "{{ audit_git_version }}"
|
||||
when:
|
||||
- audit_content == 'git'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue