summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:33:05 +0200
committerMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:33:05 +0200
commit264f527c98aadbe08cf4856fc1d4174af53ff5a5 (patch)
treef5c5505068f64dbd05e7328aa9e76d16c14ac0ad /examples
parentUpdate delegation example. (diff)
downloadansible-264f527c98aadbe08cf4856fc1d4174af53ff5a5.tar.xz
ansible-264f527c98aadbe08cf4856fc1d4174af53ff5a5.zip
update environment example
Diffstat (limited to 'examples')
-rw-r--r--examples/playbooks/environment.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/playbooks/environment.yml b/examples/playbooks/environment.yml
index 5a2d73b944..10d5ddb9a7 100644
--- a/examples/playbooks/environment.yml
+++ b/examples/playbooks/environment.yml
@@ -14,11 +14,12 @@
vars:
env:
HI: test2
- http_proxy=http://proxy.example.com:8080
+ http_proxy: http://proxy.example.com:8080
tasks:
# 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
environment:
@@ -27,6 +28,6 @@
# here we are using the $env variable above
- shell: echo $HI
- environment: $env
+ environment: env