Ver código fonte

Start iptables on each master in serial

Fix task hanging when running from a master
Denver Janke 7 anos atrás
pai
commit
bb9a4c7db6
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      roles/os_firewall/tasks/firewall/iptables.yml

+ 3 - 0
roles/os_firewall/tasks/firewall/iptables.yml

@@ -29,6 +29,9 @@
     masked: no
     daemon_reload: yes
   register: result
+  delegate_to: "{{item}}"
+  run_once: true
+  with_items: "{{ ansible_play_hosts }}"
 
 - name: need to pause here, otherwise the iptables service starting can sometimes cause ssh to fail
   pause: seconds=10