main.yml 1.0 KB

1234567891011121314151617181920212223
  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. - name: Set builddefaults config structure
  19. openshift_facts:
  20. role: builddefaults
  21. local_facts:
  22. config: "{{ openshift_builddefaults_json | default(builddefaults_yaml) }}"