mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
Merge pull request #7089 from dagwieers/debug-docs
Add an example to show all hostvars using debug
This commit is contained in:
@@ -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]
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user