mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 07:23:07 +00:00
logic on handlers
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
8fa067f61c
commit
d36f48f338
1 changed files with 6 additions and 2 deletions
|
|
@ -28,7 +28,9 @@
|
|||
group: root
|
||||
mode: 0600
|
||||
notify: reload sysctl
|
||||
when: ansible_virtualization_type != "docker"
|
||||
when:
|
||||
- ansible_virtualization_type != "docker"
|
||||
- "'procps-ng' in ansible_facts.packages"
|
||||
|
||||
- name: reload sysctl
|
||||
sysctl:
|
||||
|
|
@ -37,7 +39,9 @@
|
|||
state: present
|
||||
reload: true
|
||||
ignoreerrors: true
|
||||
when: ansible_virtualization_type != "docker"
|
||||
when:
|
||||
- ansible_virtualization_type != "docker"
|
||||
- "'systemd' in ansible_facts.packages"
|
||||
|
||||
- name: systemd restart tmp.mount
|
||||
become: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue