forked from ansible-lockdown/RHEL9-CIS
updated include/import tasks
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
3b19db6812
commit
819c942d8f
7 changed files with 86 additions and 70 deletions
|
|
@ -49,59 +49,75 @@
|
|||
tags:
|
||||
- rule_5.7
|
||||
|
||||
- include: prelim.yml
|
||||
become: yes
|
||||
tags:
|
||||
- prelim_tasks
|
||||
- always
|
||||
|
||||
- import_tasks: pre_remediation_audit.yml
|
||||
when:
|
||||
- run_audit
|
||||
|
||||
- name: Gather the package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
tags:
|
||||
- always
|
||||
|
||||
- include: parse_etc_password.yml
|
||||
become: yes
|
||||
- name: Include preliminary steps
|
||||
import_tasks: prelim.yml
|
||||
become:
|
||||
tags:
|
||||
- prelim_tasks
|
||||
- always
|
||||
|
||||
- name: run pre_remediation audit
|
||||
import_tasks: pre_remediation_audit.yml
|
||||
when:
|
||||
- run_audit
|
||||
|
||||
- name: Gather the package facts after prelim
|
||||
package_facts:
|
||||
manager: auto
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: capture /etc/password variables
|
||||
include_tasks: parse_etc_password.yml
|
||||
when: rhel9cis_section6
|
||||
|
||||
- include: section_1/main.yml
|
||||
become: yes
|
||||
- name: run Section 1 tasks
|
||||
import_tasks: section_1/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section1
|
||||
tags:
|
||||
- rhel9cis_section1
|
||||
|
||||
- include: section_2/main.yml
|
||||
become: yes
|
||||
- name: run Section 2 tasks
|
||||
import_tasks: section_2/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section2
|
||||
|
||||
- include: section_3/main.yml
|
||||
become: yes
|
||||
- name: run Section 3 tasks
|
||||
import_tasks: section_3/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section3
|
||||
|
||||
- include: section_4/main.yml
|
||||
become: yes
|
||||
- name: run Section 4 tasks
|
||||
import_tasks: section_4/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section4
|
||||
|
||||
- include: section_5/main.yml
|
||||
become: yes
|
||||
- name: run Section 5 tasks
|
||||
import_tasks: section_5/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section5
|
||||
|
||||
- include: section_6/main.yml
|
||||
become: yes
|
||||
- name: run Section 6 tasks
|
||||
import_tasks: section_6/main.yml
|
||||
become: true
|
||||
when: rhel9cis_section6
|
||||
|
||||
- include: post.yml
|
||||
become: yes
|
||||
- name: run post remediation tasks
|
||||
import_tasks: post.yml
|
||||
become: true
|
||||
tags:
|
||||
- post_tasks
|
||||
- always
|
||||
|
||||
- import_tasks: post_remediation_audit.yml
|
||||
- name: run post_remediation audit
|
||||
import_tasks: post_remediation_audit.yml
|
||||
when:
|
||||
- run_audit
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue