init.yml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. ---
  2. - import_playbook: ../../../init/evaluate_groups.yml
  3. vars:
  4. # Do not allow adding hosts during upgrade.
  5. g_new_master_hosts: []
  6. g_new_node_hosts: []
  7. - import_playbook: ../../../init/basic_facts.yml
  8. - import_playbook: ../../../init/base_packages.yml
  9. - import_playbook: ../../../init/cluster_facts.yml
  10. - name: Ensure firewall is not switched during upgrade
  11. hosts: "{{ l_upgrade_no_switch_firewall_hosts | default('oo_all_hosts') }}"
  12. vars:
  13. openshift_master_installed_version: "{{ hostvars[groups.oo_first_master.0].openshift.common.version }}"
  14. tasks:
  15. - name: set currently installed version
  16. set_fact:
  17. openshift_currently_installed_version: "{{ openshift_master_installed_version }}"
  18. - name: Check if iptables is running
  19. command: systemctl status iptables
  20. changed_when: false
  21. failed_when: false
  22. register: service_iptables_status
  23. - name: Set fact os_firewall_use_firewalld FALSE for iptables
  24. set_fact:
  25. os_firewall_use_firewalld: false
  26. when: "'Active: active' in service_iptables_status.stdout"