I am having a problem, I need help in getting ansible playbook successful connect to simple cisco switch, error is below, can anyone help me ?
root@netadmin-Virtual-Machine:/etc/ansible# ansible-playbook ios_command_1.yml -vvvv
1903 1533876596.09467: starting run
ansible-playbook 2.5.7
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
Using /etc/ansible/ansible.cfg as config file
1903 1533876596.34001: Added group all to inventory
1903 1533876596.34044: Added group ungrouped to inventory
1903 1533876596.34086: Group all now contains ungrouped
setting up inventory plugins
1903 1533876596.34433: Loading InventoryModule ‘host_list’ from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/host_list.py
1903 1533876596.34638: assigned :doc
1903 1533876596.34679: assigned :plainexamples
1903 1533876596.34763: Loading InventoryModule ‘script’ from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/script.py
1903 1533876596.35214: assigned :doc
1903 1533876596.35278: Loaded config def from plugin (inventory/script)
1903 1533876596.35376: Loading InventoryModule ‘yaml’ from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/yaml.py
1903 1533876596.35778: assigned :doc
1903 1533876596.35834: assigned :plainexamples
1903 1533876596.35906: Loaded config def from plugin (inventory/yaml)
1903 1533876596.36043: Loading InventoryModule ‘ini’ from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/ini.py
1903 1533876596.36778: assigned :doc
1903 1533876596.36845: assigned :plainexamples
1903 1533876596.36982: Loading InventoryModule ‘auto’ from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/auto.py
1903 1533876596.37186: assigned :doc
1903 1533876596.37248: assigned :plainexamples
1903 1533876596.37323: Examining possible inventory source: /etc/ansible/hosts
1903 1533876596.37387: Attempting to use plugin host_list (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/host_list.py)
1903 1533876596.37440: /etc/ansible/hosts did not meet host_list requirements
1903 1533876596.37488: Attempting to use plugin script (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/script.py)
1903 1533876596.38834: /etc/ansible/hosts was not parsable by script
1903 1533876596.38956: Attempting to use plugin yaml (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/yaml.py)
1903 1533876596.39089: Loading data from /etc/ansible/hosts
1903 1533876596.39455: /etc/ansible/hosts was not parsable by yaml
1903 1533876596.39525: Attempting to use plugin ini (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/ini.py)
1903 1533876596.39988: Added group switches to inventory
1903 1533876596.40120: set inventory_file for 10.11.32.100
1903 1533876596.40190: set inventory_dir for 10.11.32.100
1903 1533876596.40245: Added host 10.11.32.100 to inventory
1903 1533876596.40307: Added host 10.11.32.100 to group switches
Parsed /etc/ansible/hosts inventory source with ini plugin
1903 1533876596.40417: Reconcile groups and hosts in inventory.
1903 1533876596.40485: Group all now contains switches
1903 1533876596.40814: Loading CacheModule ‘memory’ from /usr/lib/python2.7/dist-packages/ansible/plugins/cache/memory.py
1903 1533876596.41029: assigned :doc
1903 1533876596.43485: Loading data from /etc/ansible/ios_command_1.yml
1903 1533876596.74245: Loading CallbackModule ‘default’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.py
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
1903 1533876596.81133: assigned :doc
1903 1533876596.81993: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py
1903 1533876596.82200: Loaded config def from plugin (callback/default)
1903 1533876596.82402: Loading CallbackModule ‘actionable’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/actionable.py (found_in_cache=False, class_only=True)
1903 1533876596.82606: assigned :doc
1903 1533876596.82684: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876596.82844: Loaded config def from plugin (callback/actionable)
1903 1533876596.82983: Loading CallbackModule ‘context_demo’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/context_demo.py (found_in_cache=False, class_only=True)
1903 1533876596.83226: assigned :doc
1903 1533876596.83367: Loading CallbackModule ‘debug’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/debug.py (found_in_cache=False, class_only=True)
1903 1533876596.83591: assigned :doc
1903 1533876596.83677: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876596.83953: Loaded config def from plugin (callback/debug)
1903 1533876596.84033: Loading CallbackModule ‘default’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.py (found_in_cache=False, class_only=True)
1903 1533876596.84737: assigned :doc
1903 1533876596.84830: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876596.84993: Loaded config def from plugin (callback/default)
1903 1533876596.85119: Loading CallbackModule ‘dense’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/dense.py (found_in_cache=False, class_only=True)
1903 1533876596.85846: assigned :doc
1903 1533876596.85944: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876596.86098: Loaded config def from plugin (callback/dense)
1903 1533876596.86257: Loading CallbackModule ‘foreman’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/foreman.py (found_in_cache=False, class_only=True)
1903 1533876596.86834: assigned :doc
1903 1533876596.87038: Loaded config def from plugin (callback/foreman)
1903 1533876596.87165: Loading CallbackModule ‘full_skip’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/full_skip.py (found_in_cache=False, class_only=True)
1903 1533876596.87347: assigned :doc
1903 1533876596.87411: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876596.87613: Loaded config def from plugin (callback/full_skip)
1903 1533876596.90800: Loading CallbackModule ‘hipchat’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py (found_in_cache=False, class_only=True)
1903 1533876596.91576: assigned :doc
1903 1533876596.91653: Loaded config def from plugin (callback/hipchat)
1903 1533876596.91788: Loading CallbackModule ‘jabber’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/jabber.py (found_in_cache=False, class_only=True)
1903 1533876596.92196: assigned :doc
1903 1533876596.92269: Loaded config def from plugin (callback/jabber)
1903 1533876596.92365: Loading CallbackModule ‘json’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/json.py (found_in_cache=False, class_only=True)
1903 1533876596.92580: assigned :doc
1903 1533876596.92747: Loading CallbackModule ‘junit’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/junit.py (found_in_cache=False, class_only=True)
1903 1533876596.93611: assigned :doc
1903 1533876596.93737: Loaded config def from plugin (callback/junit)
1903 1533876596.93852: Loading CallbackModule ‘log_plays’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/log_plays.py (found_in_cache=False, class_only=True)
1903 1533876596.94096: assigned :doc
1903 1533876596.94321: Loading CallbackModule ‘logentries’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/logentries.py (found_in_cache=False, class_only=True)
1903 1533876596.95452: assigned :doc
1903 1533876596.95525: assigned :plainexamples
1903 1533876596.95612: Loaded config def from plugin (callback/logentries)
1903 1533876596.95756: Loading CallbackModule ‘logstash’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/logstash.py (found_in_cache=False, class_only=True)
1903 1533876596.96249: assigned :doc
1903 1533876596.96328: Loaded config def from plugin (callback/logstash)
1903 1533876596.96579: Loading CallbackModule ‘mail’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/mail.py (found_in_cache=False, class_only=True)
1903 1533876596.97908: assigned :doc
1903 1533876596.98010: Loaded config def from plugin (callback/mail)
1903 1533876596.98116: Loading CallbackModule ‘minimal’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/minimal.py (found_in_cache=False, class_only=True)
1903 1533876596.98416: assigned :doc
1903 1533876596.98523: Loading CallbackModule ‘null’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/null.py (found_in_cache=False, class_only=True)
1903 1533876596.98733: assigned :doc
1903 1533876596.98890: Loading CallbackModule ‘oneline’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/oneline.py (found_in_cache=False, class_only=True)
1903 1533876596.99347: assigned :doc
1903 1533876596.99543: Loading CallbackModule ‘osx_say’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/osx_say.py (found_in_cache=False, class_only=True)
1903 1533876596.99927: assigned :doc
1903 1533876597.00057: Loading CallbackModule ‘profile_roles’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/profile_roles.py (found_in_cache=False, class_only=True)
1903 1533876597.00361: assigned :doc
1903 1533876597.00482: Loading CallbackModule ‘profile_tasks’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/profile_tasks.py (found_in_cache=False, class_only=True)
1903 1533876597.00966: assigned :doc
1903 1533876597.01023: assigned :plainexamples
1903 1533876597.01100: Loaded config def from plugin (callback/profile_tasks)
1903 1533876597.01210: Loading CallbackModule ‘selective’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/selective.py (found_in_cache=False, class_only=True)
1903 1533876597.01918: assigned :doc
1903 1533876597.01977: assigned :plainexamples
1903 1533876597.02068: Loaded config def from plugin (callback/selective)
1903 1533876597.02166: Loading CallbackModule ‘skippy’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/skippy.py (found_in_cache=False, class_only=True)
1903 1533876597.02314: assigned :doc
1903 1533876597.02377: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876597.02559: Loaded config def from plugin (callback/skippy)
1903 1533876597.02702: Loading CallbackModule ‘slack’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/slack.py (found_in_cache=False, class_only=True)
1903 1533876597.03272: assigned :doc
1903 1533876597.03358: Loaded config def from plugin (callback/slack)
1903 1533876597.03458: Loading CallbackModule ‘stderr’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/stderr.py (found_in_cache=False, class_only=True)
1903 1533876597.03686: assigned :doc
1903 1533876597.03760: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876597.03951: Loaded config def from plugin (callback/stderr)
1903 1533876597.04239: Loading CallbackModule ‘syslog_json’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/syslog_json.py (found_in_cache=False, class_only=True)
1903 1533876597.04659: assigned :doc
1903 1533876597.04818: Loaded config def from plugin (callback/syslog_json)
1903 1533876597.05027: Loading CallbackModule ‘timer’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/timer.py (found_in_cache=False, class_only=True)
1903 1533876597.05265: assigned :doc
1903 1533876597.05382: Loading CallbackModule ‘tree’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/tree.py (found_in_cache=False, class_only=True)
1903 1533876597.05585: assigned :doc
1903 1533876597.05705: Loading CallbackModule ‘unixy’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/unixy.py (found_in_cache=False, class_only=True)
1903 1533876597.06200: assigned :doc
1903 1533876597.06289: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876597.06470: Loaded config def from plugin (callback/unixy)
1903 1533876597.06615: Loading CallbackModule ‘yaml’ from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/yaml.py (found_in_cache=False, class_only=True)
1903 1533876597.06935: assigned :doc
1903 1533876597.07020: Loading ModuleDocFragment ‘default_callback’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py (found_in_cache=True, class_only=False)
1903 1533876597.07207: Loaded config def from plugin (callback/yaml)
PLAYBOOK: ios_command_1.yml ********************************************************************************************************************************************************************************************
1 plays in ios_command_1.yml
1903 1533876597.07395: in VariableManager get_vars()
1903 1533876597.08112: Loading FilterModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py
1903 1533876597.08265: Loading FilterModule ‘ipaddr’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py
1903 1533876597.08379: Loading FilterModule ‘json_query’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py
1903 1533876597.08504: Loading FilterModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py
1903 1533876597.09315: Loading FilterModule ‘network’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py
1903 1533876597.09447: Loading FilterModule ‘urlsplit’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py
1903 1533876597.09776: Loading TestModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py
1903 1533876597.09881: Loading TestModule ‘files’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py
1903 1533876597.09999: Loading TestModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py
1903 1533876597.11120: done with get_vars()
1903 1533876597.11253: in VariableManager get_vars()
1903 1533876597.11375: Loading FilterModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
1903 1533876597.11440: Loading FilterModule ‘ipaddr’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
1903 1533876597.11498: Loading FilterModule ‘json_query’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
1903 1533876597.11552: Loading FilterModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
1903 1533876597.11607: Loading FilterModule ‘network’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py (found_in_cache=True, class_only=False)
1903 1533876597.11664: Loading FilterModule ‘urlsplit’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py (found_in_cache=True, class_only=False)
1903 1533876597.11761: Loading TestModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
1903 1533876597.11825: Loading TestModule ‘files’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
1903 1533876597.11882: Loading TestModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
1903 1533876597.12114: done with get_vars()
PLAY [Collect IOS Device Facts] ****************************************************************************************************************************************************************************************
1903 1533876597.14129: Loading StrategyModule ‘linear’ from /usr/lib/python2.7/dist-packages/ansible/plugins/strategy/linear.py
1903 1533876597.14376: getting the remaining hosts for this loop
1903 1533876597.14510: done getting the remaining hosts for this loop
1903 1533876597.14581: building list of next tasks for hosts
1903 1533876597.14633: getting the next task for host 10.11.32.100
1903 1533876597.14694: done getting next task for host 10.11.32.100
1903 1533876597.14751: ^ task is: TASK: meta (flush_handlers)
1903 1533876597.14810: ^ state is: HOST STATE: block=1, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876597.14878: done building task lists
1903 1533876597.14931: counting tasks in each state of execution
1903 1533876597.14991: done counting tasks in each state of execution:
num_setups: 0
num_tasks: 1
num_rescue: 0
num_always: 0
1903 1533876597.15160: advancing hosts in ITERATING_TASKS
1903 1533876597.15212: starting to advance hosts
1903 1533876597.15268: getting the next task for host 10.11.32.100
1903 1533876597.15338: done getting next task for host 10.11.32.100
1903 1533876597.15405: ^ task is: TASK: meta (flush_handlers)
1903 1533876597.15460: ^ state is: HOST STATE: block=1, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876597.15518: done advancing hosts to next task
META: ran handlers
1903 1533876597.15628: done queuing things up, now waiting for results queue to drain
1903 1533876597.15673: results queue empty
1903 1533876597.15718: checking for any_errors_fatal
1903 1533876597.15767: done checking for any_errors_fatal
1903 1533876597.15812: checking for max_fail_percentage
1903 1533876597.15854: done checking for max_fail_percentage
1903 1533876597.15893: checking to see if all hosts have failed and the running result is not ok
1903 1533876597.15939: done checking to see if all hosts have failed
1903 1533876597.15982: getting the remaining hosts for this loop
1903 1533876597.16031: done getting the remaining hosts for this loop
1903 1533876597.16083: building list of next tasks for hosts
1903 1533876597.16128: getting the next task for host 10.11.32.100
1903 1533876597.16181: done getting next task for host 10.11.32.100
1903 1533876597.16229: ^ task is: TASK: run show version on remote devices
1903 1533876597.16272: ^ state is: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876597.16319: done building task lists
1903 1533876597.16365: counting tasks in each state of execution
1903 1533876597.16407: done counting tasks in each state of execution:
num_setups: 0
num_tasks: 1
num_rescue: 0
num_always: 0
1903 1533876597.16542: advancing hosts in ITERATING_TASKS
1903 1533876597.16592: starting to advance hosts
1903 1533876597.16638: getting the next task for host 10.11.32.100
1903 1533876597.16686: done getting next task for host 10.11.32.100
1903 1533876597.16733: ^ task is: TASK: run show version on remote devices
1903 1533876597.16779: ^ state is: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876597.16823: done advancing hosts to next task
1903 1533876597.16887: getting variables
1903 1533876597.16956: in VariableManager get_vars()
1903 1533876597.17182: Loading FilterModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
1903 1533876597.17283: Loading FilterModule ‘ipaddr’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
1903 1533876597.17346: Loading FilterModule ‘json_query’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
1903 1533876597.17401: Loading FilterModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
1903 1533876597.17450: Loading FilterModule ‘network’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py (found_in_cache=True, class_only=False)
1903 1533876597.17498: Loading FilterModule ‘urlsplit’ from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py (found_in_cache=True, class_only=False)
1903 1533876597.17590: Loading TestModule ‘core’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
1903 1533876597.17643: Loading TestModule ‘files’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
1903 1533876597.17693: Loading TestModule ‘mathstuff’ from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
1903 1533876597.17923: Calling all_inventory to load vars for 10.11.32.100
1903 1533876597.17975: Calling groups_inventory to load vars for 10.11.32.100
1903 1533876597.18025: Calling all_plugins_inventory to load vars for 10.11.32.100
1903 1533876597.18240: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py
1903 1533876597.18313: Calling all_plugins_play to load vars for 10.11.32.100
1903 1533876597.18388: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py (found_in_cache=True, class_only=False)
1903 1533876597.18468: Calling groups_plugins_inventory to load vars for 10.11.32.100
1903 1533876597.18551: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py (found_in_cache=True, class_only=False)
1903 1533876597.18632: Calling groups_plugins_play to load vars for 10.11.32.100
1903 1533876597.18706: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py (found_in_cache=True, class_only=False)
1903 1533876597.18814: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py (found_in_cache=True, class_only=False)
1903 1533876597.18907: Loading VarsModule ‘host_group_vars’ from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py (found_in_cache=True, class_only=False)
1903 1533876597.19006: done with get_vars()
1903 1533876597.19076: done getting variables
1903 1533876597.19125: sending task start callback, copying the task so we can template it temporarily
1903 1533876597.19173: done copying, going to template now
1903 1533876597.19218: done templating
1903 1533876597.19260: here goes the callback…
TASK [run show version on remote devices] ******************************************************************************************************************************************************************************
task path: /etc/ansible/ios_command_1.yml:8
1903 1533876597.19443: sending task start callback
1903 1533876597.19526: entering _queue_task() for 10.11.32.100/ios_command
1903 1533876597.19599: Creating lock for ios_command
1903 1533876597.19923: worker is 1 (out of 1 available)
1903 1533876597.20192: exiting _queue_task() for 10.11.32.100/ios_command
1903 1533876597.20647: done queuing things up, now waiting for results queue to drain
1903 1533876597.20698: waiting for pending results…
1911 1533876597.21677: running TaskExecutor() for 10.11.32.100/TASK: run show version on remote devices
1911 1533876597.21866: in run() - task 00155d24-6f11-11bb-3aca-000000000008
1911 1533876597.22030: calling self._execute()
1911 1533876597.22999: Loading Connection ‘network_cli’ from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py
1911 1533876597.23340: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py
1911 1533876597.23831: assigned :doc
1911 1533876597.23962: Loading ModuleDocFragment ‘shell_common’ from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/shell_common.py
1911 1533876597.24377: Loaded config def from plugin (shell/sh)
1911 1533876597.24431: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
1911 1533876597.25023: Loading Connection ‘local’ from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/local.py
1911 1533876597.25083: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
1911 1533876597.25144: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
1911 1533876597.25602: assigned :doc
1911 1533876597.25855: Loading Connection ‘ssh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)
1911 1533876597.28924: assigned :doc
1911 1533876597.29123: Loaded config def from plugin (connection/ssh)
1911 1533876597.30727: assigned :doc
1911 1533876597.30861: Loaded config def from plugin (connection/network_cli)
<10.11.32.100> attempting to start connection
<10.11.32.100> using connection plugin network_cli
<10.11.32.100> local domain socket does not exist, starting it
<10.11.32.100> control socket path is /root/.ansible/pc/2e6a38f446
<10.11.32.100> 1912 1533876598.40468: Loading Connection ‘ssh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)
1912 1533876598.43470: assigned :doc
1912 1533876598.43656: Loaded config def from plugin (connection/ssh)
The full traceback is:
Traceback (most recent call last):
File “/usr/bin/ansible-connection”, line 87, in start
self.connection._connect()
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py”, line 292, in _connect
ssh = self.paramiko_conn._connect()
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko_ssh.py”, line 240, in _connect
self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko_ssh.py”, line 348, in _connect_uncached
raise AnsibleConnectionFailure(msg)
AnsibleConnectionFailure: Authentication failed.
1911 1533876601.49185: done running TaskExecutor() for 10.11.32.100/TASK: run show version on remote devices [00155d24-6f11-11bb-3aca-000000000008]
1911 1533876601.49288: sending task result for task 00155d24-6f11-11bb-3aca-000000000008
1911 1533876601.49810: done sending task result for task 00155d24-6f11-11bb-3aca-000000000008
1911 1533876601.50225: WORKER PROCESS EXITING
1903 1533876601.50541: marking 10.11.32.100 as failed
1903 1533876601.51035: marking host 10.11.32.100 failed, current state: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876601.51100: ^ failed state is now: HOST STATE: block=2, task=1, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
1903 1533876601.51166: getting the next task for host 10.11.32.100
1903 1533876601.51220: host 10.11.32.100 is done iterating, returning
fatal: [10.11.32.100]: FAILED! => {
“msg”: “Authentication failed.”
}
1903 1533876601.52450: no more pending results, returning what we have
1903 1533876601.52513: results queue empty
1903 1533876601.52569: checking for any_errors_fatal
1903 1533876601.52625: done checking for any_errors_fatal
1903 1533876601.52682: checking for max_fail_percentage
1903 1533876601.52735: done checking for max_fail_percentage
1903 1533876601.52783: checking to see if all hosts have failed and the running result is not ok
1903 1533876601.52855: done checking to see if all hosts have failed
1903 1533876601.52907: getting the remaining hosts for this loop
1903 1533876601.53017: done getting the remaining hosts for this loop
1903 1533876601.53416: building list of next tasks for hosts
1903 1533876601.53470: getting the next task for host 10.11.32.100
1903 1533876601.53524: host 10.11.32.100 is done iterating, returning
1903 1533876601.53573: done building task lists
1903 1533876601.53626: counting tasks in each state of execution
1903 1533876601.53678: done counting tasks in each state of execution:
num_setups: 0
num_tasks: 0
num_rescue: 0
num_always: 0
1903 1533876601.53840: all hosts are done, so returning None’s for all hosts
1903 1533876601.53892: done queuing things up, now waiting for results queue to drain
1903 1533876601.53943: results queue empty
1903 1533876601.54608: checking for any_errors_fatal
1903 1533876601.54661: done checking for any_errors_fatal
1903 1533876601.54712: checking for max_fail_percentage
1903 1533876601.54763: done checking for max_fail_percentage
1903 1533876601.54817: checking to see if all hosts have failed and the running result is not ok
1903 1533876601.54872: done checking to see if all hosts have failed
1903 1533876601.54928: getting the next task for host 10.11.32.100
1903 1533876601.54987: host 10.11.32.100 is done iterating, returning
1903 1533876601.55042: running handlers
to retry, use: --limit @/etc/ansible/ios_command_1.retry
PLAY RECAP *************************************************************************************************************************************************************************************************************
10.11.32.100 : ok=0 changed=0 unreachable=0 failed=1
1903 1533876601.55926: RUNNING CLEANUP