mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add note about 'local_action'
This commit is contained in:
parent
94f56614e7
commit
5effbd4ff5
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@
|
||||||
action: command echo taking out of rotation $inventory_hostname
|
action: command echo taking out of rotation $inventory_hostname
|
||||||
delegate_to: 127.0.0.1
|
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
|
- name: do several things on the actual host
|
||||||
action: command echo hi mom $inventory_hostname
|
action: command echo hi mom $inventory_hostname
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue