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
1 changed files with 9 additions and 8 deletions

View File

@ -99,6 +99,15 @@
roles: roles:
- role: "lxc_hosts" - 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 - name: Playbook for configuring test host networking
hosts: localhost hosts: localhost
# This set of tasks runs against localhost # This set of tasks runs against localhost
@ -206,14 +215,6 @@
setup: setup:
gather_subset: "all" 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 - name: Set interfaces fact
set_fact: set_fact:
active_interfaces: |- active_interfaces: |-