Move some handlers around. Some to just base but some also to base.

This commit is contained in:
Kevin Fenzi 2016-03-30 15:06:15 +00:00
parent e0eef0e7fe
commit 109c0ece10
2 changed files with 24 additions and 14 deletions

View file

@ -1,6 +1,16 @@
---
- name: restart watchdog
service: name=watchdog state=restarted
- name: apply interface-changes
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
service: name=NetworkManager state=restarted
@ -8,9 +18,15 @@
- name: reload NetworkManager-connections
command: nmcli c reload
- name: apply interface-changes
command: nmcli con up {{ item.split()[1] }}
async: 1
poll: 0
with_items:
- "{{ if_uuid.stdout_lines }}"
- name: restart postfix
service: name=postfix state=restarted
- name: restart rsyslog
service: name=rsyslog state=restarted
- name: restart sshd
service: name=sshd state=restarted
- name: restart watchdog
service: name=watchdog state=restarted