From bb9a4c7db6c87d9cc8c9be71011c0f450fb64903 Mon Sep 17 00:00:00 2001 From: Denver Janke Date: Thu, 10 Aug 2017 10:29:50 +1000 Subject: Start iptables on each master in serial Fix task hanging when running from a master --- roles/os_firewall/tasks/firewall/iptables.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/os_firewall/tasks/firewall/iptables.yml b/roles/os_firewall/tasks/firewall/iptables.yml index 55f2fc471..b4e6ec1f7 100644 --- a/roles/os_firewall/tasks/firewall/iptables.yml +++ b/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 -- cgit v1.2.3