Move some handlers around. Some to just base but some also to base.
This commit is contained in:
parent
e0eef0e7fe
commit
109c0ece10
2 changed files with 24 additions and 14 deletions
|
@ -111,12 +111,6 @@
|
||||||
- name: restart rpcidmapd
|
- name: restart rpcidmapd
|
||||||
action: service name=rpcidmapd state=restarted
|
action: service name=rpcidmapd state=restarted
|
||||||
|
|
||||||
- name: restart rsyslog
|
|
||||||
action: service name=rsyslog state=restarted
|
|
||||||
|
|
||||||
- name: restart sshd
|
|
||||||
action: service name=sshd state=restarted
|
|
||||||
|
|
||||||
- name: restart xinetd
|
- name: restart xinetd
|
||||||
action: service name=xinetd state=restarted
|
action: service name=xinetd state=restarted
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: restart watchdog
|
- name: apply interface-changes
|
||||||
service: name=watchdog state=restarted
|
command: nmcli con up {{ item.split()[1] }}
|
||||||
|
async: 1
|
||||||
|
poll: 0
|
||||||
|
with_items:
|
||||||
|
- "{{ if_uuid.stdout_lines }}"
|
||||||
|
|
||||||
|
- name: restart iptables
|
||||||
|
service: name=iptables state=restarted
|
||||||
|
|
||||||
|
- name: restart ip6tables
|
||||||
|
service: name=ip6tables state=restarted
|
||||||
|
|
||||||
- name: restart NetworkManager
|
- name: restart NetworkManager
|
||||||
service: name=NetworkManager state=restarted
|
service: name=NetworkManager state=restarted
|
||||||
|
@ -8,9 +18,15 @@
|
||||||
- name: reload NetworkManager-connections
|
- name: reload NetworkManager-connections
|
||||||
command: nmcli c reload
|
command: nmcli c reload
|
||||||
|
|
||||||
- name: apply interface-changes
|
- name: restart postfix
|
||||||
command: nmcli con up {{ item.split()[1] }}
|
service: name=postfix state=restarted
|
||||||
async: 1
|
|
||||||
poll: 0
|
- name: restart rsyslog
|
||||||
with_items:
|
service: name=rsyslog state=restarted
|
||||||
- "{{ if_uuid.stdout_lines }}"
|
|
||||||
|
- name: restart sshd
|
||||||
|
service: name=sshd state=restarted
|
||||||
|
|
||||||
|
- name: restart watchdog
|
||||||
|
service: name=watchdog state=restarted
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue