Ansible: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Linha 2: Linha 2:
*[http://docs.ansible.com/ansible/latest/ Documentation]
*[http://docs.ansible.com/ansible/latest/ Documentation]
=Log and Verbosity=
=Log and Verbosity=
*[https://docs.ansible.com/ansible/latest/network/user_guide/network_debug_troubleshooting.html  Network Debug and Troubleshooting Guide]
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
# Specify the location for the log file
# Specify the location for the log file

Edição das 12h48min de 17 de dezembro de 2019

URLS

Log and Verbosity

# Specify the location for the log file
export ANSIBLE_LOG_PATH=~/ansible.log
# Enable Debug
export ANSIBLE_DEBUG=True

# Run with 4*v for connection level verbosity
ansible-playbook -vvvv ...

WSL

Fixing case sensitive

- include_tasks: "os_{{ ansible_facts['os_family']|lower }}.yml"