Difference between revisions of "Debug:"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
- name: Print version | - name: Print version | ||
debug: | debug: | ||
− | msg: "Ansible Version: {{ ansibleVersion. | + | msg: "Ansible Version: {{ ansibleVersion.stdout }}" |
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
Line 13: | Line 13: | ||
[[ANSIBLE_DEBUG]] | [[ANSIBLE_DEBUG]] | ||
* [[We were unable to read either as JSON nor YAML]] | * [[We were unable to read either as JSON nor YAML]] | ||
+ | * [[.stdout]] | ||
== See also == | == See also == | ||
* {{Ansible}} | * {{Ansible}} |
Revision as of 13:30, 11 August 2022
https://serverfault.com/questions/695786/ansible-print-debug-msg-variable
- name: Print version debug: msg: "Ansible Version: {{ ansibleVersion.stdout }}"
Related
ANSIBLE_DEBUG
See also
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: