init.yml 1009 B

123456789101112131415161718192021222324252627282930313233343536
  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 clean repo cache in the event repos have been changed manually
  11. hosts: oo_all_hosts
  12. tags:
  13. - pre_upgrade
  14. tasks:
  15. - name: Clean package cache
  16. command: "{{ ansible_pkg_mgr }} clean all"
  17. when: not openshift.common.is_atomic | bool
  18. args:
  19. warn: no
  20. - name: Ensure firewall is not switched during upgrade
  21. hosts: oo_all_hosts
  22. tasks:
  23. - name: Check if iptables is running
  24. command: systemctl status iptables
  25. changed_when: false
  26. failed_when: false
  27. register: service_iptables_status
  28. - name: Set fact os_firewall_use_firewalld FALSE for iptables
  29. set_fact:
  30. os_firewall_use_firewalld: false
  31. when: "'Active: active' in service_iptables_status.stdout"