summaryrefslogtreecommitdiff
path: root/examples/playbooks
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-05-05 13:31:48 -0400
committerMichael DeHaan <michael@ansibleworks.com>2013-05-05 13:31:48 -0400
commit1f93887e02a9a1168077a1835ff48418cf0bdd6d (patch)
tree4ed78174af99fa4d5ffafe1342d53b79c49ec3ac /examples/playbooks
parent3575a3374bcc708a0935fbaa84eb12f61c570dbf (diff)
downloadansible-1f93887e02a9a1168077a1835ff48418cf0bdd6d.tar.gz
Update delegation example.
Diffstat (limited to 'examples/playbooks')
-rw-r--r--examples/playbooks/delegation.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/playbooks/delegation.yml b/examples/playbooks/delegation.yml
index b1f9a93455..28946af34c 100644
--- a/examples/playbooks/delegation.yml
+++ b/examples/playbooks/delegation.yml
@@ -10,7 +10,7 @@
# This example cheats by replacing the load balancer script with the 'echo' command,
# leaving actual communication with the load balancer as an exercise to the reader. In reality,
# you could call anything you want, the main thing is that it should do something with
-# $inventory_hostname
+# {{inventory_hostname}}
# NOTE: see batch_size_control.yml for an example of the 'serial' keyword, which you almost certainly
# want to use in this kind of example. Here we have a mocked up example that does something to
@@ -22,18 +22,18 @@
tasks:
- name: take the machine out of rotation
- action: command echo taking out of rotation $inventory_hostname
+ action: command echo taking out of rotation {{inventory_hostname}}
delegate_to: 127.0.0.1
# here's an alternate notation if you are delegating to 127.0.0.1, you can use 'local_action'
# instead of 'action' and leave off the 'delegate_to' part.
#
-# - local_action: command echo taking out of rotation $inventory_hostname
+# - local_action: command echo taking out of rotation {{inventory_hostname}}
- name: do several things on the actual host
- action: command echo hi mom $inventory_hostname
+ action: command echo hi mom {{inventory_hostname}}
- name: put machine back into rotation
- action: command echo inserting into rotation $inventory_hostname
+ action: command echo inserting into rotation {{inventory_hostname}}
delegate_to: 127.0.0.1