setup.yml 901 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: Disable excluders
  3. hosts: oo_nodes_to_config
  4. gather_facts: no
  5. roles:
  6. - role: openshift_excluder
  7. r_openshift_excluder_action: disable
  8. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"
  9. - name: Evaluate node groups
  10. hosts: localhost
  11. become: no
  12. connection: local
  13. tasks:
  14. - name: Evaluate oo_containerized_master_nodes
  15. add_host:
  16. name: "{{ item }}"
  17. groups: oo_containerized_master_nodes
  18. ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
  19. ansible_become: "{{ g_sudo | default(omit) }}"
  20. with_items: "{{ groups.oo_nodes_to_config | default([]) }}"
  21. when:
  22. - hostvars[item].openshift is defined
  23. - hostvars[item].openshift.common is defined
  24. - hostvars[item].openshift.common.is_containerized | bool
  25. - (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config)
  26. changed_when: False