Browse Source

Merge "Restart dnsmasq after clearing iptables"

Zuul 2 months ago
parent
commit
ecde03823f
1 changed files with 9 additions and 8 deletions
  1. 9
    8
      test-prepare-host.yml

+ 9
- 8
test-prepare-host.yml View File

@@ -99,6 +99,15 @@
99 99
   roles:
100 100
     - role: "lxc_hosts"
101 101
 
102
+  post_tasks:
103
+    - name: Trigger dnsmasq restart
104
+      command: /bin/true
105
+      changed_when:
106
+        - (lxc_net_manage_iptables is defined) and (lxc_net_manage_iptables | bool)
107
+        - (iptables_clear is defined) and (iptables_clear is changed)
108
+      notify:
109
+      - Restart dnsmasq
110
+
102 111
 - name: Playbook for configuring test host networking
103 112
   hosts: localhost
104 113
   # This set of tasks runs against localhost
@@ -206,14 +215,6 @@
206 215
       setup:
207 216
         gather_subset: "all"
208 217
 
209
-    - name: Trigger dnsmasq restart
210
-      command: /bin/true
211
-      changed_when:
212
-        - (lxc_net_manage_iptables is defined) and (lxc_net_manage_iptables | bool)
213
-        - (iptables_clear is defined) and (iptables_clear is changed)
214
-      notify:
215
-        - Restart dnsmasq
216
-
217 218
     - name: Set interfaces fact
218 219
       set_fact:
219 220
         active_interfaces: |-

Loading…
Cancel
Save