collect: Restart after changing SELinux permissive
*collectd* needs to be restarted after changing its SELinux domain to/from permissive, as many operations that may fail only happen at startup.btop
parent
3949a40f64
commit
3cc501abef
|
@ -31,6 +31,8 @@
|
||||||
domain: collectd_t
|
domain: collectd_t
|
||||||
permissive: '{{ collectd_selinux_permissive|d(false) }}'
|
permissive: '{{ collectd_selinux_permissive|d(false) }}'
|
||||||
when: ansible_selinux.status == 'enabled'
|
when: ansible_selinux.status == 'enabled'
|
||||||
|
notify:
|
||||||
|
- restart collectd
|
||||||
tags:
|
tags:
|
||||||
- selinux
|
- selinux
|
||||||
- name: ensure collectd is running
|
- name: ensure collectd is running
|
||||||
|
@ -39,3 +41,8 @@
|
||||||
state: started
|
state: started
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
handlers:
|
||||||
|
- name: restart collectd
|
||||||
|
service:
|
||||||
|
name: collectd
|
||||||
|
state: restarted
|
||||||
|
|
Loading…
Reference in New Issue