From 729b0e3bee79e4bca5137d34ac93aa71a81bf679 Mon Sep 17 00:00:00 2001 From: John R Barker Date: Wed, 12 Apr 2017 16:03:31 -0400 Subject: [PATCH] Use exports (#23542) --- .../rst/network_debug_troubleshooting.rst | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/docsite/rst/network_debug_troubleshooting.rst b/docs/docsite/rst/network_debug_troubleshooting.rst index d9c7a4783a3..07b36ad21a6 100644 --- a/docs/docsite/rst/network_debug_troubleshooting.rst +++ b/docs/docsite/rst/network_debug_troubleshooting.rst @@ -55,9 +55,11 @@ Because logging is very verbose it is disabled by default. It can be enabled via # 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_DEBUG=True ansible-playbook -vvvv ... + ansible-playbook -vvvv ... After Ansible has finished running you can inspect the log file: @@ -122,10 +124,12 @@ If you have SSH keys configured correctly you can drop the ``-k`` parameter If the connection still fails you can combine it the enable_network_logging_, for example:: - # Specify the location for the log file - export ANSIBLE_LOG_PATH=~/ansible.log - # Run with 4*v for connection level verbosity - ANSIBLE_DEBUG=True ansible -m eos_command -a 'commands=?' -i inventory switch1.example.net -e 'ansible_connection=local' -u admin -k + # 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 -m eos_command -a 'commands=?' -i inventory switch1.example.net -e 'ansible_connection=local' -u admin -k Then review the log file and find the relevant error message in the rest of this document. @@ -268,7 +272,8 @@ You can tell Ansible to automatically accept the keys Environment variable method:: - ANSIBLE_PARAMIKO_HOST_KEY_AUTO_ADD=True ansible-playbook ... + export ANSIBLE_PARAMIKO_HOST_KEY_AUTO_ADD=True + ansible-playbook ... ``ansible.cfg`` method: