init.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. - hosts: localhost
  3. connection: local
  4. become: no
  5. gather_facts: no
  6. tasks:
  7. - include_vars: ../../../byo/openshift-cluster/cluster_hosts.yml
  8. - add_host:
  9. name: "{{ item }}"
  10. groups: l_oo_all_hosts
  11. with_items: "{{ g_all_hosts | default([]) }}"
  12. - hosts: l_oo_all_hosts
  13. gather_facts: no
  14. tasks:
  15. - include_vars: ../../../byo/openshift-cluster/cluster_hosts.yml
  16. - include: ../evaluate_groups.yml
  17. vars:
  18. # Do not allow adding hosts during upgrade.
  19. g_new_master_hosts: []
  20. g_new_node_hosts: []
  21. openshift_cluster_id: "{{ cluster_id | default('default') }}"
  22. openshift_deployment_type: "{{ deployment_type }}"
  23. - name: Set oo_options
  24. hosts: oo_all_hosts
  25. tasks:
  26. - set_fact:
  27. openshift_docker_additional_registries: "{{ lookup('oo_option', 'docker_additional_registries') }}"
  28. when: openshift_docker_additional_registries is not defined
  29. - set_fact:
  30. openshift_docker_insecure_registries: "{{ lookup('oo_option', 'docker_insecure_registries') }}"
  31. when: openshift_docker_insecure_registries is not defined
  32. - set_fact:
  33. openshift_docker_blocked_registries: "{{ lookup('oo_option', 'docker_blocked_registries') }}"
  34. when: openshift_docker_blocked_registries is not defined
  35. - set_fact:
  36. openshift_docker_options: "{{ lookup('oo_option', 'docker_options') }}"
  37. when: openshift_docker_options is not defined
  38. - set_fact:
  39. openshift_docker_log_driver: "{{ lookup('oo_option', 'docker_log_driver') }}"
  40. when: openshift_docker_log_driver is not defined
  41. - set_fact:
  42. openshift_docker_log_options: "{{ lookup('oo_option', 'docker_log_options') }}"
  43. when: openshift_docker_log_options is not defined
  44. - include: ../initialize_facts.yml