forked from ansible-lockdown/RHEL9-CIS
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
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Pre Audit | If using git for content set up
|
- name: Pre Audit | retrieve audit content files from git
|
||||||
block:
|
git:
|
||||||
- name: Pre Audit | Install git (rh8 python3)
|
repo: "{{ audit_file_git }}"
|
||||||
package:
|
dest: "{{ audit_conf_dir }}"
|
||||||
name: git
|
version: "{{ audit_git_version }}"
|
||||||
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 }}"
|
|
||||||
when:
|
when:
|
||||||
- audit_content == 'git'
|
- audit_content == 'git'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue