forked from ansible-lockdown/RHEL9-CIS
5.6.3 tidy up
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
abd99426b8
commit
89e6372648
1 changed files with 5 additions and 5 deletions
|
|
@ -46,18 +46,18 @@
|
||||||
|
|
||||||
- name: "5.6.3 | PATCH | Ensure default user shell timeout is 900 seconds or less"
|
- name: "5.6.3 | PATCH | Ensure default user shell timeout is 900 seconds or less"
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
create: true
|
path: "{{ item.dest }}"
|
||||||
mode: 0644
|
|
||||||
dest: "{{ item.dest }}"
|
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
marker: "# {mark} CIS 5.6.3 ANSIBLE MANAGED"
|
marker: "# {mark} CIS 5.6.3 ANSIBLE MANAGED"
|
||||||
|
create: true
|
||||||
|
mode: 0644
|
||||||
block: |
|
block: |
|
||||||
TMOUT={{ rhel9cis_shell_session_timeout.timeout }}
|
TMOUT={{ rhel9cis_shell_session_timeout.timeout }}
|
||||||
export TMOUT
|
export TMOUT
|
||||||
readonly TMOUT
|
readonly TMOUT
|
||||||
loop:
|
loop:
|
||||||
- { dest: "{{ rhel9cis_shell_session_timeout.file }}", state: present }
|
- { path: "{{ rhel9cis_shell_session_timeout.file }}", state: present }
|
||||||
- { dest: /etc/profile, state: "{{ (rhel9cis_shell_session_timeout.file == '/etc/profile') | ternary('present', 'absent') }}" }
|
- { path: /etc/profile, state: "{{ (rhel9cis_shell_session_timeout.file == '/etc/profile') | ternary('present', 'absent') }}" }
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_6_3
|
- rhel9cis_rule_5_6_3
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue