setup.yml 817 B

1234567891011121314151617181920212223242526
  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. - name: Evaluate node groups
  9. hosts: localhost
  10. become: no
  11. connection: local
  12. tasks:
  13. - name: Evaluate oo_containerized_master_nodes
  14. add_host:
  15. name: "{{ item }}"
  16. groups: oo_containerized_master_nodes
  17. ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
  18. ansible_become: "{{ g_sudo | default(omit) }}"
  19. with_items: "{{ groups.oo_nodes_to_config | default([]) }}"
  20. when:
  21. - hostvars[item].openshift is defined
  22. - hostvars[item].openshift.common is defined
  23. - hostvars[item].openshift_is_containerized | bool
  24. - (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config)
  25. changed_when: False