Browse Source

Merge "Restart lxc-dnsmasq after clearing iptables rules"

Zuul 5 months ago
parent
commit
ad73e7b087
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      test-prepare-host.yml

+ 10
- 0
test-prepare-host.yml View File

@@ -30,6 +30,7 @@
30 30
 
31 31
     - name: Clear iptables rules
32 32
       shell: "{{ playbook_dir }}/iptables-clear.sh"
33
+      register: iptables_clear
33 34
       tags:
34 35
         - skip_ansible_lint
35 36
 
@@ -235,3 +236,12 @@
235 236
         - network_interfaces_rhel  is changed
236 237
         - item.alias is defined
237 238
       with_items: "{{ bridges }}"
239
+
240
+    - name: Trigger dnsmasq restart
241
+      command: /bin/true
242
+      changed_when:
243
+        - lxc_net_manage_iptables | bool
244
+        - iptables_clear is defined
245
+        - iptables_clear is changed
246
+      notify:
247
+        - Restart dnsmasq

Loading…
Cancel
Save