init.yml 725 B

12345678910111213141516171819202122232425
  1. ---
  2. - include: ../evaluate_groups.yml
  3. vars:
  4. # Do not allow adding hosts during upgrade.
  5. g_new_master_hosts: []
  6. g_new_node_hosts: []
  7. openshift_cluster_id: "{{ cluster_id | default('default') }}"
  8. - include: ../initialize_oo_option_facts.yml
  9. - include: ../initialize_facts.yml
  10. - name: Ensure firewall is not switched during upgrade
  11. hosts: oo_all_hosts
  12. tasks:
  13. - name: Check if iptables is running
  14. command: systemctl status iptables
  15. changed_when: false
  16. failed_when: false
  17. register: service_iptables_status
  18. - name: Set fact os_firewall_use_firewalld FALSE for iptables
  19. set_fact:
  20. os_firewall_use_firewalld: false
  21. when: "'Active: active' in service_iptables_status.stdout"