docs update, use connection: local vs local_action
This commit is contained in:
parent
6ef022b034
commit
1e1caaad06
1 changed files with 4 additions and 3 deletions
|
@ -154,9 +154,10 @@ EXAMPLES = '''
|
||||||
path: /proc/3466/status
|
path: /proc/3466/status
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# wait 300 seconds for port 22 to become open and contain "OpenSSH", don't assume the inventory_hostname is resolvable
|
# wait 300 seconds for port 22 to become open and contain "OpenSSH",
|
||||||
# and don't start checking for 10 seconds
|
# don't assume the inventory_hostname is resolvable and don't start checking for 10 seconds
|
||||||
- local_action: wait_for port=22 host="{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex=OpenSSH delay=10
|
- wait_for: port=22 host="{{ ansible_host|default(ansible_ssh_host|default(inventory_hostname)) }}" search_regex=OpenSSH delay=10
|
||||||
|
connection: local
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import binascii
|
import binascii
|
||||||
|
|
Loading…
Reference in a new issue