diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-03-29 16:39:52 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-03-30 14:36:49 -0400 |
commit | c39c0272ca4ec72af9b95c8c6fe448addbb5ec96 (patch) | |
tree | 348e6375df65631a2d4843910bb25d62e905d605 /roles/os_firewall | |
parent | 403b5c5545b9b07e7a4416e5a63609512ddaa224 (diff) | |
download | openshift-c39c0272ca4ec72af9b95c8c6fe448addbb5ec96.tar.gz openshift-c39c0272ca4ec72af9b95c8c6fe448addbb5ec96.tar.bz2 openshift-c39c0272ca4ec72af9b95c8c6fe448addbb5ec96.tar.xz openshift-c39c0272ca4ec72af9b95c8c6fe448addbb5ec96.zip |
Wait for firewalld polkit policy to be defined
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1436964
Diffstat (limited to 'roles/os_firewall')
-rw-r--r-- | roles/os_firewall/tasks/firewall/firewalld.yml | 10 |
1 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 a9a69f73c..2b40eee1b 100644 --- a/roles/os_firewall/tasks/firewall/firewalld.yml +++ b/roles/os_firewall/tasks/firewall/firewalld.yml @@ -34,6 +34,16 @@ pause: seconds=10 when: result | changed +# Fix suspected race between firewalld and polkit BZ1436964 +- name: Wait for polkit action to have been created + command: pkaction --action-id=org.fedoraproject.FirewallD1.config.info + ignore_errors: true + register: pkaction + changed_when: false + until: pkaction.rc == 0 + retries: 6 + delay: 10 + - name: Add firewalld allow rules firewalld: port: "{{ item.port }}" |