mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
Rework the iptables/libvirt handler stuff.
This commit is contained in:
@@ -149,10 +149,10 @@
|
||||
- name: restart bridge
|
||||
shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge
|
||||
|
||||
- name: hup libvirtd
|
||||
command: pkill -HUP libvirtd
|
||||
- name: reload libvirtd
|
||||
service: name=libvirtd state=reloaded
|
||||
ignore_errors: true
|
||||
when: inventory_hostname.startswith('buildhw')
|
||||
when: ansible_virtualization_role == 'host'
|
||||
|
||||
- name: restart fcomm-cache-worker
|
||||
service: name=fcomm-cache-worker state=restarted
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
when: not inventory_hostname.startswith('fed-cloud09')
|
||||
notify:
|
||||
- restart iptables
|
||||
- hup libvirtd
|
||||
- reload libvirtd
|
||||
tags:
|
||||
- iptables
|
||||
- config
|
||||
@@ -141,7 +141,7 @@
|
||||
when: not inventory_hostname.startswith('fed-cloud09')
|
||||
notify:
|
||||
- restart ip6tables
|
||||
- hup libvirtd
|
||||
- reload libvirtd
|
||||
tags:
|
||||
- ip6tables
|
||||
- config
|
||||
|
||||
Reference in New Issue
Block a user