main.yml 1.2 KB

1234567891011121314151617181920212223242526
  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[inventory_hostname]
  8. # | oo_merge_dicts(vars if (ansible_version.full
  9. # | version_compare('2.0', 'ge')
  10. # | bool) else hostvars)
  11. # | oo_openshift_env }}"
  12. # openshift_env_structures:
  13. # - 'openshift.builddefaults.env.*'
  14. local_facts:
  15. http_proxy: "{{ openshift_builddefaults_http_proxy | default(None) }}"
  16. https_proxy: "{{ openshift_builddefaults_https_proxy | default(None) }}"
  17. no_proxy: "{{ openshift_builddefaults_no_proxy | default(None) }}"
  18. git_http_proxy: "{{ openshift_builddefaults_git_http_proxy | default(None) }}"
  19. git_https_proxy: "{{ openshift_builddefaults_git_https_proxy | default(None) }}"
  20. - name: Set builddefaults config structure
  21. openshift_facts:
  22. role: builddefaults
  23. local_facts:
  24. config: "{{ openshift_builddefaults_json | default(builddefaults_yaml) }}"