openshift_facts.yml 861 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. - name: Create initial host groups for localhost
  3. hosts: localhost
  4. connection: local
  5. become: no
  6. gather_facts: no
  7. tags:
  8. - always
  9. tasks:
  10. - include_vars: ../byo/openshift-cluster/cluster_hosts.yml
  11. - name: Evaluate group l_oo_all_hosts
  12. add_host:
  13. name: "{{ item }}"
  14. groups: l_oo_all_hosts
  15. with_items: "{{ g_all_hosts | default([]) }}"
  16. changed_when: False
  17. - name: Create initial host groups for all hosts
  18. hosts: l_oo_all_hosts
  19. gather_facts: no
  20. tags:
  21. - always
  22. tasks:
  23. - include_vars: ../byo/openshift-cluster/cluster_hosts.yml
  24. - include: ../common/openshift-cluster/evaluate_groups.yml
  25. - name: Gather Cluster facts
  26. hosts: OSEv3
  27. roles:
  28. - openshift_facts
  29. tasks:
  30. - openshift_facts:
  31. openshift_env: "{{ hostvars[inventory_hostname] | oo_openshift_env }}"
  32. register: result
  33. - debug: var=result