mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 07:23:07 +00:00
container standards
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
876ac290d5
commit
8fa067f61c
5 changed files with 8 additions and 13 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# defaults file for rhel9-cis
|
||||
|
||||
rhel9cis_skip_for_travis: false
|
||||
rhel9cis_system_is_container: false
|
||||
system_is_container: false
|
||||
# rhel9cis is left off the front of this var for consistency in testing pipeline
|
||||
# system_is_ec2 toggle will disable tasks that fail on Amazon EC2 instances. Set true to skip and false to run tasks
|
||||
system_is_ec2: false
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
- hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
vars:
|
||||
is_container: false
|
||||
|
||||
roles:
|
||||
- role: "{{ playbook_dir }}"
|
||||
rhel9cis_system_is_container: "{{ is_container | default(false) }}"
|
||||
rhel9cis_skip_for_travis: false
|
||||
|
||||
|
|
|
|||
4
site.yml
4
site.yml
|
|
@ -1,11 +1,7 @@
|
|||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
is_container: false
|
||||
|
||||
roles:
|
||||
|
||||
- role: "{{ playbook_dir }}"
|
||||
rhel9cis_system_is_container: "{{ is_container | default(false) }}"
|
||||
rhel9cis_skip_for_travis: false
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
state: present
|
||||
when:
|
||||
- rhel9cis_rule_2_2_1_1
|
||||
- not rhel9cis_system_is_container
|
||||
- not system_is_container
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
when:
|
||||
- rhel9cis_time_synchronization == "chrony"
|
||||
- rhel9cis_rule_2_2_1_2
|
||||
- not rhel9cis_system_is_container
|
||||
- not system_is_container
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
|
|
|
|||
|
|
@ -177,7 +177,8 @@
|
|||
recursive: true
|
||||
etype: "{{ item.1.etype }}"
|
||||
permissions: "{{ item.1.mode }}"
|
||||
when: not rhel9cis_system_is_container
|
||||
when:
|
||||
- not system_is_container
|
||||
with_nested:
|
||||
- "{{ (ansible_check_mode | ternary(rhel_09_6_2_7_patch_audit, rhel_09_6_2_7_patch)).results |
|
||||
rejectattr('skipped', 'defined') | map(attribute='item') | map('first') | list }}"
|
||||
|
|
@ -541,7 +542,8 @@
|
|||
recursive: true
|
||||
etype: "{{ item.1.etype }}"
|
||||
permissions: "{{ item.1.mode }}"
|
||||
when: not rhel9cis_system_is_container
|
||||
when:
|
||||
- not system_is_container
|
||||
with_nested:
|
||||
- "{{ (ansible_check_mode | ternary(rhel_09_6_2_20_patch_audit, rhel_09_6_2_20_patch)).results |
|
||||
rejectattr('skipped', 'defined') | map(attribute='item') | map('first') | list }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue