diff options
Diffstat (limited to 'roles/os_firewall/tasks')
-rw-r--r-- | roles/os_firewall/tasks/firewall/firewalld.yml | 5 | ||||
-rw-r--r-- | roles/os_firewall/tasks/firewall/iptables.yml | 5 |
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: |