From 5effbd4ff56cf2884c5d6b4e82220f4aed764284 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 20 Aug 2012 18:26:05 -0400 Subject: [PATCH] add note about 'local_action' --- examples/playbooks/delegation.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/playbooks/delegation.yml b/examples/playbooks/delegation.yml index 766a69ed63..b1f9a93455 100644 --- a/examples/playbooks/delegation.yml +++ b/examples/playbooks/delegation.yml @@ -25,6 +25,11 @@ 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 + - name: do several things on the actual host action: command echo hi mom $inventory_hostname