|
|
@ -14,11 +14,12 @@
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
HI: test2
|
|
|
|
HI: test2
|
|
|
|
http_proxy=http://proxy.example.com:8080
|
|
|
|
http_proxy: http://proxy.example.com:8080
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
# here we just define the dictionary directly and use it
|
|
|
|
# here we just define the dictionary directly and use it
|
|
|
|
|
|
|
|
# (here $HI is the shell variable as nothing in Ansible will replace it)
|
|
|
|
|
|
|
|
|
|
|
|
- shell: echo $HI
|
|
|
|
- shell: echo $HI
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
@ -27,6 +28,6 @@
|
|
|
|
# here we are using the $env variable above
|
|
|
|
# here we are using the $env variable above
|
|
|
|
|
|
|
|
|
|
|
|
- shell: echo $HI
|
|
|
|
- shell: echo $HI
|
|
|
|
environment: $env
|
|
|
|
environment: env
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|