Merge "Restart dnsmasq after clearing iptables"

This commit is contained in:
Zuul 2019-02-13 10:28:31 +00:00 committed by Gerrit Code Review
commit ecde03823f

View File

@ -99,6 +99,15 @@
roles:
- role: "lxc_hosts"
post_tasks:
- name: Trigger dnsmasq restart
command: /bin/true
changed_when:
- (lxc_net_manage_iptables is defined) and (lxc_net_manage_iptables | bool)
- (iptables_clear is defined) and (iptables_clear is changed)
notify:
- Restart dnsmasq
- name: Playbook for configuring test host networking
hosts: localhost
# This set of tasks runs against localhost
@ -206,14 +215,6 @@
setup:
gather_subset: "all"
- name: Trigger dnsmasq restart
command: /bin/true
changed_when:
- (lxc_net_manage_iptables is defined) and (lxc_net_manage_iptables | bool)
- (iptables_clear is defined) and (iptables_clear is changed)
notify:
- Restart dnsmasq
- name: Set interfaces fact
set_fact:
active_interfaces: |-