main.yml 1.6 KB

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