mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add an example to show all hostvars using debug
This is a useful example to help debug how facts and vars are being collated.
This commit is contained in:
parent
ae29e43f93
commit
3c15d64655
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ EXAMPLES = '''
|
|||
|
||||
- shell: /usr/bin/uptime
|
||||
register: result
|
||||
|
||||
- debug: var=result
|
||||
|
||||
- name: Display all variables/facts known for a host
|
||||
debug: var=hostvars[inventory_hostname]
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue