init.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 essential node configmaps are present
  11. hosts: oo_first_master
  12. tasks:
  13. - import_role:
  14. name: openshift_node_group
  15. tasks_from: check_for_configs.yml
  16. - name: Ensure firewall is not switched during upgrade
  17. hosts: "{{ l_upgrade_no_switch_firewall_hosts | default('oo_all_hosts') }}"
  18. vars:
  19. openshift_master_installed_version: "{{ hostvars[groups.oo_first_master.0].openshift_current_version }}"
  20. tasks:
  21. - name: set currently installed version
  22. set_fact:
  23. openshift_currently_installed_version: "{{ openshift_master_installed_version }}"
  24. - name: Get iptable service details
  25. systemd:
  26. name: "iptables"
  27. ignore_errors: true
  28. register: iptables_service
  29. - name: Set fact os_firewall_use_firewalld FALSE for iptables
  30. set_fact:
  31. os_firewall_use_firewalld: false
  32. when:
  33. - iptables_service.status.ActiveState != 'active'