Browse Source

Add 10 second wait after disabling firewalld

Scott Dodson 8 years ago
parent
commit
47ecfb8fb5

+ 5 - 0
roles/os_firewall/tasks/firewall/firewalld.yml

@@ -16,6 +16,11 @@
   register: task_result
   failed_when: "task_result|failed and 'could not' not in task_result.msg|lower"
 
+- name: Wait 10 seconds after disabling iptables
+  pause:
+    seconds: 10
+  when: task_result | changed
+
 - name: Start and enable firewalld service
   systemd:
     name: firewalld

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

@@ -9,6 +9,11 @@
   register: task_result
   failed_when: "task_result|failed and 'could not' not in task_result.msg|lower"
 
+- name: Wait 10 seconds after disabling firewalld
+  pause:
+    seconds: 10
+  when: task_result | changed
+
 - name: Install iptables packages
   package: name={{ item }} state=present
   with_items: