forked from ansible-lockdown/RHEL9-CIS
with_items to loop
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
904d7811d4
commit
8694bfde75
4 changed files with 8 additions and 14 deletions
|
|
@ -63,8 +63,7 @@
|
|||
|
||||
- name: "5.6.1.4 | PATCH | Ensure inactive password lock is 30 days or less | Apply Inactive setting to existing accounts"
|
||||
ansible.builtin.shell: chage --inactive {{ rhel9cis_inactivelock.lock_days }} "{{ item }}"
|
||||
with_items:
|
||||
- "{{ rhel9cis_5_6_1_4_user_list.stdout_lines }}"
|
||||
loop: "{{ rhel9cis_5_6_1_4_user_list.stdout_lines }}"
|
||||
when:
|
||||
- rhel9cis_rule_5_6_1_4
|
||||
tags:
|
||||
|
|
@ -108,8 +107,7 @@
|
|||
when:
|
||||
- rhel9cis_5_6_1_5_user_list.stdout | length > 0
|
||||
- rhel9cis_futurepwchgdate_autofix
|
||||
with_items:
|
||||
- "{{ rhel9cis_5_6_1_5_user_list.stdout_lines }}"
|
||||
loop: "{{ rhel9cis_5_6_1_5_user_list.stdout_lines }}"
|
||||
vars:
|
||||
warn_control_id: '5.6.1.5'
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue