logic on handlers

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-01-18 13:14:49 +00:00
parent 8fa067f61c
commit d36f48f338
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -28,7 +28,9 @@
group: root group: root
mode: 0600 mode: 0600
notify: reload sysctl notify: reload sysctl
when: ansible_virtualization_type != "docker" when:
- ansible_virtualization_type != "docker"
- "'procps-ng' in ansible_facts.packages"
- name: reload sysctl - name: reload sysctl
sysctl: sysctl:
@ -37,7 +39,9 @@
state: present state: present
reload: true reload: true
ignoreerrors: true ignoreerrors: true
when: ansible_virtualization_type != "docker" when:
- ansible_virtualization_type != "docker"
- "'systemd' in ansible_facts.packages"
- name: systemd restart tmp.mount - name: systemd restart tmp.mount
become: true become: true