Restarting syslog separately, delete its socket on teardown
This commit is contained in:
parent
71705be709
commit
4dc828ae5d
|
@ -46,6 +46,11 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: mountpoint
|
loop_var: mountpoint
|
||||||
|
|
||||||
|
- name: Delete syslog socket
|
||||||
|
file:
|
||||||
|
path: '{{ dynamic_jails_path }}/{{ jail_id }}/var/run/log'
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Delete config dir for jail
|
- name: Delete config dir for jail
|
||||||
file:
|
file:
|
||||||
path: '{{ dynamic_jails_path }}/configs/{{ jail_id }}'
|
path: '{{ dynamic_jails_path }}/configs/{{ jail_id }}'
|
||||||
|
|
|
@ -43,5 +43,11 @@
|
||||||
|
|
||||||
- name: Sending HUP to any any crucial processes to reload their /etc/hosts
|
- name: Sending HUP to any any crucial processes to reload their /etc/hosts
|
||||||
command:
|
command:
|
||||||
/usr/bin/killall -HUP dnsmasq syslogd nginx
|
/usr/bin/killall -HUP dnsmasq
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
- name: Restarting syslog to put its log socket into the new jail
|
||||||
|
service:
|
||||||
|
name: syslogd
|
||||||
|
state: restarted
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue