summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-25 14:01:21 -0500
committerScott Dodson <sdodson@redhat.com>2017-01-25 14:03:48 -0500
commit47ecfb8fb5739161b6904e014567f65757be519b (patch)
tree0e8fa8f66cde80d8ed3f538f98ca9f48348e1071
parent18da6147f5f0e1689219b22dca0efcbf45d6aaa3 (diff)
downloadopenshift-47ecfb8fb5739161b6904e014567f65757be519b.tar.gz
openshift-47ecfb8fb5739161b6904e014567f65757be519b.tar.bz2
openshift-47ecfb8fb5739161b6904e014567f65757be519b.tar.xz
openshift-47ecfb8fb5739161b6904e014567f65757be519b.zip
Add 10 second wait after disabling firewalld
-rw-r--r--roles/os_firewall/tasks/firewall/firewalld.yml5
-rw-r--r--roles/os_firewall/tasks/firewall/iptables.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/os_firewall/tasks/firewall/firewalld.yml b/roles/os_firewall/tasks/firewall/firewalld.yml
index c4db197ca..a9a69f73c 100644
--- a/roles/os_firewall/tasks/firewall/firewalld.yml
+++ b/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
diff --git a/roles/os_firewall/tasks/firewall/iptables.yml b/roles/os_firewall/tasks/firewall/iptables.yml
index 930b32cf2..38ea2477c 100644
--- a/roles/os_firewall/tasks/firewall/iptables.yml
+++ b/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: