mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Use addresses and names reserved for documentation
Trying to preserve the meaning of the examples. Not all occurrences in `docsite/rst/playbooks_lookups.rst` have been changed for instance to allow the unchanged examples to be used for testing. Related to: #17479
This commit is contained in:
@@ -32,7 +32,7 @@ and run the task again::
|
||||
PLAY ***************************************************************************
|
||||
|
||||
TASK [wrong variable] **********************************************************
|
||||
fatal: [192.168.1.1]: FAILED! => {"failed": true, "msg": "ERROR! 'wrong_var' is undefined"}
|
||||
fatal: [192.0.2.10]: FAILED! => {"failed": true, "msg": "ERROR! 'wrong_var' is undefined"}
|
||||
Debugger invoked
|
||||
(debug) p result
|
||||
{'msg': u"ERROR! 'wrong_var' is undefined", 'failed': True}
|
||||
@@ -42,10 +42,10 @@ and run the task again::
|
||||
(debug) p task.args
|
||||
{u'data': '{{ var1 }}'}
|
||||
(debug) redo
|
||||
ok: [192.168.1.1]
|
||||
ok: [192.0.2.10]
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
192.168.1.1 : ok=1 changed=0 unreachable=0 failed=0
|
||||
192.0.2.10 : ok=1 changed=0 unreachable=0 failed=0
|
||||
|
||||
This time, the task runs successfully!
|
||||
|
||||
@@ -66,14 +66,14 @@ Print values used to execute a module::
|
||||
(debug) p task.args
|
||||
{u'name': u'{{ pkg_name }}'}
|
||||
(debug) p vars
|
||||
{u'ansible_all_ipv4_addresses': [u'192.168.1.1'],
|
||||
{u'ansible_all_ipv4_addresses': [u'192.0.2.10'],
|
||||
u'ansible_architecture': u'x86_64',
|
||||
...
|
||||
}
|
||||
(debug) p vars['pkg_name']
|
||||
u'bash'
|
||||
(debug) p host
|
||||
192.168.1.1
|
||||
192.0.2.10
|
||||
(debug) p result
|
||||
{'_ansible_no_log': False,
|
||||
'changed': False,
|
||||
|
||||
Reference in New Issue
Block a user