1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add docs for 'local_action' (ansible:#905). Oh, and fix 'make viewdocs'.

This commit is contained in:
Tim Bielawa 2012-08-19 22:04:18 -04:00
parent 1824dd33cf
commit 9ad592965a
2 changed files with 17 additions and 2 deletions

View file

@ -93,5 +93,5 @@ if __name__ == '__main__':
if "view" in sys.argv:
import webbrowser
if not webbrowser.open('html/index.html'):
if not webbrowser.open('index.html'):
print >> sys.stderr, "Could not open on your webbrowser."

View file

@ -491,7 +491,6 @@ a good idea::
serial: 5
tasks:
- name: take out of load balancer pool
action: command /usr/bin/take_out_of_pool $inventory_hostname
delegate_to: 127.0.0.1
@ -503,6 +502,22 @@ a good idea::
action: command /usr/bin/add_back_to_pool $inventory_hostname
delegate_to: 127.0.0.1
Here is the same playbook as above, but using the shorthand syntax,
'local_action', for delegating to 127.0.0.1::
---
# ...
tasks:
- name: take out of load balancer pool
local_action: command /usr/bin/take_out_of_pool $inventory_hostname
# ...
- name: add back to load balancer pool
local_action: command /usr/bin/add_back_to_pool $inventory_hostname
Style Points
````````````