main.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - name: Set docker facts
  3. openshift_facts:
  4. role: "{{ item.role }}"
  5. local_facts: "{{ item.local_facts }}"
  6. with_items:
  7. - role: common
  8. local_facts:
  9. deployment_type: "{{ openshift_deployment_type }}"
  10. - role: docker
  11. local_facts:
  12. additional_registries: "{{ openshift_docker_additional_registries | default(None) }}"
  13. blocked_registries: "{{ openshift_docker_blocked_registries | default(None) }}"
  14. insecure_registries: "{{ openshift_docker_insecure_registries | default(None) }}"
  15. log_driver: "{{ openshift_docker_log_driver | default(None) }}"
  16. log_options: "{{ openshift_docker_log_options | default(None) }}"
  17. options: "{{ openshift_docker_options | default(None) }}"
  18. disable_push_dockerhub: "{{ openshift_disable_push_dockerhub | default(None) }}"
  19. - role: node
  20. local_facts:
  21. portal_net: "{{ openshift_master_portal_net | default(None) }}"
  22. # TODO: append openshift.node.portal_net to docker_insecure_registries
  23. - set_fact:
  24. docker_additional_registries: "{{ openshift.docker.additional_registries
  25. | default(omit) }}"
  26. docker_blocked_registries: "{{ openshift.docker.blocked_registries
  27. | default(omit) }}"
  28. docker_insecure_registries: "{{ openshift.docker.insecure_registries
  29. | default(omit) }}"
  30. docker_log_driver: "{{ openshift.docker.log_driver | default(omit) }}"
  31. docker_log_options: "{{ openshift.docker.log_options | default(omit) }}"
  32. docker_options: "{{ openshift.docker.options | default(omit) }}"
  33. docker_push_dockerhub: "{{ openshift.docker.disable_push_dockerhub
  34. | default(omit) }}"