Explorar el Código

Wait for firewalld polkit policy to be defined

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1436964
Scott Dodson hace 8 años
padre
commit
c39c0272ca
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      roles/os_firewall/tasks/firewall/firewalld.yml

+ 10 - 0
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 }}"