main.yml 1.1 KB

123456789101112131415161718192021222324
  1. ---
  2. - name: Set builddefaults
  3. openshift_facts:
  4. role: builddefaults
  5. # TODO: add ability to define builddefaults env vars sort of like this
  6. # may need to move the config generation to a filter however.
  7. # openshift_env: "{{ hostvars
  8. # | oo_merge_hostvars(vars, inventory_hostname)
  9. # | oo_openshift_env }}"
  10. # openshift_env_structures:
  11. # - 'openshift.builddefaults.env.*'
  12. local_facts:
  13. http_proxy: "{{ openshift_builddefaults_http_proxy | default(None) }}"
  14. https_proxy: "{{ openshift_builddefaults_https_proxy | default(None) }}"
  15. no_proxy: "{{ openshift_builddefaults_no_proxy | default(None) }}"
  16. git_http_proxy: "{{ openshift_builddefaults_git_http_proxy | default(None) }}"
  17. git_https_proxy: "{{ openshift_builddefaults_git_https_proxy | default(None) }}"
  18. git_no_proxy: "{{ openshift_builddefaults_git_no_proxy | default(None) }}"
  19. - name: Set builddefaults config structure
  20. openshift_facts:
  21. role: builddefaults
  22. local_facts:
  23. config: "{{ openshift_builddefaults_json | default(builddefaults_yaml) }}"