Difference between revisions of "Debug:"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/debug_module.html
  
debug: msg: "Ansible Version: Template:AnsibleVersion.stdout"
+
https://serverfault.com/questions/695786/ansible-print-debug-msg-variable
 +
<pre>
 +
<nowiki>
 +
- name: Print version
 +
  debug:
 +
    msg: "Ansible Version: {{ ansibleVersion.stdout }}"
 +
</nowiki>
 +
</pre>
  
 +
https://serverfault.com/questions/537060/how-to-see-stdout-of-ansible-commands
 +
<pre>
 +
<nowiki>
 +
- debug: msg="{{ your_var.stdout }}"
 +
- debug: msg="{{ your_var.stderr }}"
 +
</nowiki>
 +
</pre>
  
[[ANSIBLE_DEBUG]]
+
== Related ==
 +
* <code>[[ANSIBLE_DEBUG]]</code>
 +
* <code>[[We were unable to read either as JSON nor YAML]]</code>
 +
* <code>[[.stdout]]</code>
 +
* [[Ansible print and debug examples]]
 +
* <code>[[msg:]]</code>
 +
* <code>[[-vvv]]</code>
  
{{Ansible}}
+
== See also ==
 +
* {{ansible-playbook}}
 +
* {{Ansible}}
 +
 
 +
[[Category:Ansible]]

Latest revision as of 12:36, 31 August 2022

Advertising: