Add an example to show all hostvars using debug

This is a useful example to help debug how facts and vars are being collated.
reviewable/pr18780/r1
Dag Wieers 11 years ago
parent afd0e78f16
commit a19fbc7b24

@ -50,6 +50,9 @@ EXAMPLES = '''
- shell: /usr/bin/uptime - shell: /usr/bin/uptime
register: result register: result
- debug: var=result - debug: var=result
- name: Display all variables/facts known for a host
debug: var=hostvars[inventory_hostname]
''' '''

Loading…
Cancel
Save