AIAP: Cascade environment variables to playbooks

Change-Id: Icb6a636d1af80c6097667f3fc69131ed3b6a0299
changes/07/803507/1
Ian Howell 1 year ago
parent 5be95e2e82
commit 36d7153a66
  1. 5
      tools/airship-in-a-pod/infra-builder/assets/opt/ansible/playbooks/roles/install-kustomize/defaults/main.yaml
  2. 6
      tools/airship-in-a-pod/infra-builder/assets/opt/ansible/playbooks/roles/install-kustomize/tasks/main.yaml

@ -13,5 +13,6 @@
kustomize_version: v3.8.5
kustomize_download_url: "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/{{ kustomize_version }}/kustomize_{{ kustomize_version }}_linux_amd64.tar.gz"
proxy:
http:
noproxy:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
no_proxy: "{{ lookup('env', 'no_proxy') }}"

@ -19,6 +19,6 @@
args:
warn: false
environment:
http_proxy: "{{ proxy.http }}"
https_proxy: "{{ proxy.http }}"
no_proxy: "{{ proxy.noproxy }}"
http_proxy: "{{ proxy.http_proxy }}"
https_proxy: "{{ proxy.https_proxy }}"
no_proxy: "{{ proxy.no_proxy }}"

Loading…
Cancel
Save