Function -
- example 1
- name: Display all variables/facts known for a host debug: var: hostvars[inventory_hostname] verbosity: 4
register
- name: Write some content in a file /tmp/foo.txt copy: dest: /tmp/foo.txt content: | Good Morning! Awesome sunshine today. register: display_file_content - name: Debug display_file_content debug: var: display_file_content verbosity: 2

Seonglae Cho