Rework the iptables/libvirt handler stuff.

This commit is contained in:
Kevin Fenzi 2015-04-28 17:18:14 +00:00
parent 34a84f468f
commit a136816e83
2 changed files with 5 additions and 5 deletions

View file

@ -149,10 +149,10 @@
- name: restart bridge - name: restart bridge
shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge
- name: hup libvirtd - name: reload libvirtd
command: pkill -HUP libvirtd service: name=libvirtd state=reloaded
ignore_errors: true ignore_errors: true
when: inventory_hostname.startswith('buildhw') when: ansible_virtualization_role == 'host'
- name: restart fcomm-cache-worker - name: restart fcomm-cache-worker
service: name=fcomm-cache-worker state=restarted service: name=fcomm-cache-worker state=restarted

View file

@ -117,7 +117,7 @@
when: not inventory_hostname.startswith('fed-cloud09') when: not inventory_hostname.startswith('fed-cloud09')
notify: notify:
- restart iptables - restart iptables
- hup libvirtd - reload libvirtd
tags: tags:
- iptables - iptables
- config - config
@ -141,7 +141,7 @@
when: not inventory_hostname.startswith('fed-cloud09') when: not inventory_hostname.startswith('fed-cloud09')
notify: notify:
- restart ip6tables - restart ip6tables
- hup libvirtd - reload libvirtd
tags: tags:
- ip6tables - ip6tables
- config - config