ktbyers / scp_sidecar

Ansible modules using SCP and SSH to transfer files to network devices
Apache License 2.0
24 stars 13 forks source link

SCP transfer fails in odd way #15

Closed iamroddo closed 6 years ago

iamroddo commented 6 years ago

With Ansible 2.5.4 this module initiates a SCP file transfer. I can see from "debug ip scp" that a transfer occurs. However the name of the file on bootflash is always '"` (no quotation marks used) which looks like the module code. The same result appears whether the file to be transferred exists or not.

dc14wanrt01#more bootflash:'"`
#!/usr/bin/python
# -*- coding: utf-8 -*-
ANSIBALLZ_WRAPPER = True # For test-module script to tell this is a ANSIBALLZ_WRAPPER
import os
import os.path
import sys
import __main__
scriptdir = None
try:
    scriptdir = os.path.dirname(os.path.realpath(__main__.__file__))
except (AttributeError, OSError):
    pass
if scriptdir is not None:
    sys.path = [p for p in sys.path if p != scriptdir]
import base64
import shutil
import zipfile
import tempfile
import subprocess
if sys.version_info < (3,):
    bytes = str
    PY3 = False
<snip snip>

The playbook

---
- hosts: all
  gather_facts: no
  tasks:
  - name: Copy image to destination devices
    cisco_file_transfer:
      host: "{{ ansible_host }}"
      username: "{{ ansible_user }}"
      password: "{{ ansible_password }}"
      source_file: "/home/vagrant/playbooks/wanrt/test_file.txt"
      dest_file: "test_file.txt"

The output with `ANSIBLE_DEBUG=1

vagrant@ansible:~/playbooks/wanrt$ ansible-playbook scp-image.yaml  --limit="dc14wanrt01"
  3376 1529095829.53410: starting run
Vault password:
  3376 1529095832.69788: Added group all to inventory
  3376 1529095832.69839: Added group ungrouped to inventory
  3376 1529095832.69873: Group all now contains ungrouped
  3376 1529095832.70051: Loading InventoryModule 'host_list' from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/host_list.py
  3376 1529095832.70199: assigned :doc
  3376 1529095832.70248: assigned :plainexamples
  3376 1529095832.70322: Loading InventoryModule 'script' from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/script.py
  3376 1529095832.70592: assigned :doc
  3376 1529095832.70665: Loaded config def from plugin (inventory/script)
  3376 1529095832.70755: Loading InventoryModule 'yaml' from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/yaml.py
  3376 1529095832.70959: assigned :doc
  3376 1529095832.71031: assigned :plainexamples
  3376 1529095832.71112: Loaded config def from plugin (inventory/yaml)
  3376 1529095832.71206: Loading InventoryModule 'ini' from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/ini.py
  3376 1529095832.71551: assigned :doc
  3376 1529095832.71617: assigned :plainexamples
  3376 1529095832.71712: Loading InventoryModule 'auto' from /usr/lib/python2.7/dist-packages/ansible/plugins/inventory/auto.py
  3376 1529095832.71841: assigned :doc
  3376 1529095832.71899: assigned :plainexamples
  3376 1529095832.71957: Examining possible inventory source: /home/vagrant/playbooks/wanrt/hosts
  3376 1529095832.72054: Attempting to use plugin host_list (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/host_list.py)
  3376 1529095832.72172: /home/vagrant/playbooks/wanrt/hosts did not meet host_list requirements
  3376 1529095832.72223: Attempting to use plugin script (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/script.py)
  3376 1529095832.73311: /home/vagrant/playbooks/wanrt/hosts was not parsable by script
  3376 1529095832.73357: Attempting to use plugin yaml (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/yaml.py)
  3376 1529095832.73512: Loading data from /home/vagrant/playbooks/wanrt/hosts
  3376 1529095832.74274: /home/vagrant/playbooks/wanrt/hosts was not parsable by yaml
  3376 1529095832.74369: Attempting to use plugin ini (/usr/lib/python2.7/dist-packages/ansible/plugins/inventory/ini.py)
  3376 1529095832.75222: Added group wanrts to inventory
  3376 1529095832.75262: Added group dc10 to inventory
  3376 1529095832.75341: set inventory_file for dc10wanrt01
  3376 1529095832.75519: set inventory_dir for dc10wanrt01
  3376 1529095832.75585: Added host dc10wanrt01 to inventory
  3376 1529095832.75631: Added host dc10wanrt01 to group dc10
  3376 1529095832.75659: set ansible_host for dc10wanrt01
  3376 1529095832.75701: set inventory_file for dc10wanrt02
  3376 1529095832.75840: set inventory_dir for dc10wanrt02
  3376 1529095832.75872: Added host dc10wanrt02 to inventory
  3376 1529095832.75902: Added host dc10wanrt02 to group dc10
  3376 1529095832.75952: set ansible_host for dc10wanrt02
  3376 1529095832.76001: Added group dc14 to inventory
  3376 1529095832.76070: Group wanrts now contains dc14
  3376 1529095832.76132: set inventory_file for dc14wanrt01
  3376 1529095832.76309: set inventory_dir for dc14wanrt01
  3376 1529095832.76426: Added host dc14wanrt01 to inventory
  3376 1529095832.76500: Added host dc14wanrt01 to group dc14
  3376 1529095832.76548: set ansible_host for dc14wanrt01
  3376 1529095832.76594: Added group dc17 to inventory
  3376 1529095832.76636: Group wanrts now contains dc17
  3376 1529095832.76694: set inventory_file for dc17wanrt01
  3376 1529095832.76843: set inventory_dir for dc17wanrt01
  3376 1529095832.76890: Added host dc17wanrt01 to inventory
  3376 1529095832.76931: Added host dc17wanrt01 to group dc17
  3376 1529095832.76974: set ansible_host for dc17wanrt01
  3376 1529095832.77044: set inventory_file for dc17wanrt02
  3376 1529095832.77200: set inventory_dir for dc17wanrt02
  3376 1529095832.77244: Added host dc17wanrt02 to inventory
  3376 1529095832.77282: Added host dc17wanrt02 to group dc17
  3376 1529095832.77323: set ansible_host for dc17wanrt02
  3376 1529095832.77364: Added group dc18 to inventory
  3376 1529095832.77406: Group wanrts now contains dc18
  3376 1529095832.77459: set inventory_file for dc18wanrt01
  3376 1529095832.77681: set inventory_dir for dc18wanrt01
  3376 1529095832.77849: Added host dc18wanrt01 to inventory
  3376 1529095832.77921: Added host dc18wanrt01 to group dc18
  3376 1529095832.77975: set ansible_host for dc18wanrt01
  3376 1529095832.78041: set inventory_file for dc18wanrt02
  3376 1529095832.78196: set inventory_dir for dc18wanrt02
  3376 1529095832.78241: Added host dc18wanrt02 to inventory
  3376 1529095832.78282: Added host dc18wanrt02 to group dc18
  3376 1529095832.78315: set ansible_host for dc18wanrt02
  3376 1529095832.78345: Added group dc19 to inventory
  3376 1529095832.78373: Group wanrts now contains dc19
  3376 1529095832.78408: set inventory_file for dc19wanrt01
  3376 1529095832.78540: set inventory_dir for dc19wanrt01
  3376 1529095832.78585: Added host dc19wanrt01 to inventory
  3376 1529095832.78618: Added host dc19wanrt01 to group dc19
  3376 1529095832.78653: set ansible_host for dc19wanrt01
  3376 1529095832.78702: set inventory_file for dc19wanrt02
  3376 1529095832.78889: set inventory_dir for dc19wanrt02
  3376 1529095832.78931: Added host dc19wanrt02 to inventory
  3376 1529095832.78986: Added host dc19wanrt02 to group dc19
  3376 1529095832.79023: set ansible_host for dc19wanrt02
  3376 1529095832.79063: Reconcile groups and hosts in inventory.
  3376 1529095832.79107: Group all now contains dc10
  3376 1529095832.79165: Group all now contains wanrts
  3376 1529095832.79456: Loading CacheModule 'memory' from /usr/lib/python2.7/dist-packages/ansible/plugins/cache/memory.py
  3376 1529095832.79586: assigned :doc
  3376 1529095832.81277: Added /home/vagrant/playbooks/wanrt/library to loader search path
  3376 1529095832.81736: Loading data from /home/vagrant/playbooks/wanrt/scp-image.yaml
  3376 1529095832.93969: Loading CallbackModule 'yaml' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/yaml.py
  3376 1529095832.94248: assigned :doc
  3376 1529095832.94673: Loading ModuleDocFragment 'default_callback' from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/default_callback.py
  3376 1529095832.94784: Loaded config def from plugin (callback/yaml)
  3376 1529095832.94893: Loading CallbackModule 'actionable' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/actionable.py (found_in_cache=False, class_only=True)
  3376 1529095832.95057: assigned :doc
  3376 1529095832.95108: 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)
  3376 1529095832.95217: Loaded config def from plugin (callback/actionable)
  3376 1529095832.95306: Loading CallbackModule 'context_demo' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/context_demo.py (found_in_cache=False, class_only=True)
  3376 1529095832.95398: assigned :doc
  3376 1529095832.95467: Loading CallbackModule 'debug' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/debug.py (found_in_cache=False, class_only=True)
  3376 1529095832.95566: assigned :doc
  3376 1529095832.95615: 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)
  3376 1529095832.95706: Loaded config def from plugin (callback/debug)
  3376 1529095832.95761: Loading CallbackModule 'default' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.py (found_in_cache=False, class_only=True)
  3376 1529095832.99428: assigned :doc
  3376 1529095832.99581: 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)
  3376 1529095832.99731: Loaded config def from plugin (callback/default)
  3376 1529095832.99832: Loading CallbackModule 'dense' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/dense.py (found_in_cache=False, class_only=True)
  3376 1529095833.00175: assigned :doc
  3376 1529095833.00263: 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)
  3376 1529095833.00363: Loaded config def from plugin (callback/dense)
  3376 1529095833.03513: Loading CallbackModule 'foreman' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/foreman.py (found_in_cache=False, class_only=True)
  3376 1529095833.03851: assigned :doc
  3376 1529095833.03905: Loaded config def from plugin (callback/foreman)
  3376 1529095833.03976: Loading CallbackModule 'full_skip' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/full_skip.py (found_in_cache=False, class_only=True)
  3376 1529095833.04093: assigned :doc
  3376 1529095833.04136: 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)
  3376 1529095833.04260: Loaded config def from plugin (callback/full_skip)
  3376 1529095833.04685: Loading CallbackModule 'hipchat' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py (found_in_cache=False, class_only=True)
  3376 1529095833.05203: assigned :doc
  3376 1529095833.05278: Loaded config def from plugin (callback/hipchat)
  3376 1529095833.05367: Loading CallbackModule 'jabber' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/jabber.py (found_in_cache=False, class_only=True)
  3376 1529095833.05542: assigned :doc
  3376 1529095833.05620: Loaded config def from plugin (callback/jabber)
  3376 1529095833.05692: Loading CallbackModule 'json' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/json.py (found_in_cache=False, class_only=True)
  3376 1529095833.05822: assigned :doc
  3376 1529095833.05981: Loading CallbackModule 'junit' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/junit.py (found_in_cache=False, class_only=True)
  3376 1529095833.06362: assigned :doc
  3376 1529095833.06430: Loaded config def from plugin (callback/junit)
  3376 1529095833.06492: Loading CallbackModule 'log_plays' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/log_plays.py (found_in_cache=False, class_only=True)
  3376 1529095833.06679: assigned :doc
  3376 1529095833.06781: Loading CallbackModule 'logentries' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/logentries.py (found_in_cache=False, class_only=True)
  3376 1529095833.07097: assigned :doc
  3376 1529095833.07148: assigned :plainexamples
  3376 1529095833.07212: Loaded config def from plugin (callback/logentries)
  3376 1529095833.07283: Loading CallbackModule 'logstash' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/logstash.py (found_in_cache=False, class_only=True)
  3376 1529095833.07526: assigned :doc
  3376 1529095833.07657: Loaded config def from plugin (callback/logstash)
  3376 1529095833.07928: Loading CallbackModule 'mail' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/mail.py (found_in_cache=False, class_only=True)
  3376 1529095833.08244: assigned :doc
  3376 1529095833.08312: Loaded config def from plugin (callback/mail)
  3376 1529095833.08387: Loading CallbackModule 'minimal' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/minimal.py (found_in_cache=False, class_only=True)
  3376 1529095833.08506: assigned :doc
  3376 1529095833.08554: Loading CallbackModule 'null' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/null.py (found_in_cache=False, class_only=True)
  3376 1529095833.08623: assigned :doc
  3376 1529095833.08710: Loading CallbackModule 'oneline' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/oneline.py (found_in_cache=False, class_only=True)
  3376 1529095833.08860: assigned :doc
  3376 1529095833.08945: Loading CallbackModule 'osx_say' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/osx_say.py (found_in_cache=False, class_only=True)
  3376 1529095833.09073: assigned :doc
  3376 1529095833.09143: Loading CallbackModule 'profile_roles' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/profile_roles.py (found_in_cache=False, class_only=True)
  3376 1529095833.09368: assigned :doc
  3376 1529095833.09477: Loading CallbackModule 'profile_tasks' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/profile_tasks.py (found_in_cache=False, class_only=True)
  3376 1529095833.09894: assigned :doc
  3376 1529095833.09946: assigned :plainexamples
  3376 1529095833.10006: Loaded config def from plugin (callback/profile_tasks)
  3376 1529095833.10076: Loading CallbackModule 'selective' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/selective.py (found_in_cache=False, class_only=True)
  3376 1529095833.10346: assigned :doc
  3376 1529095833.10384: assigned :plainexamples
  3376 1529095833.10450: Loaded config def from plugin (callback/selective)
  3376 1529095833.10516: Loading CallbackModule 'skippy' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/skippy.py (found_in_cache=False, class_only=True)
  3376 1529095833.10601: assigned :doc
  3376 1529095833.10653: 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)
  3376 1529095833.10750: Loaded config def from plugin (callback/skippy)
  3376 1529095833.10909: Loading CallbackModule 'slack' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/slack.py (found_in_cache=False, class_only=True)
  3376 1529095833.11301: assigned :doc
  3376 1529095833.11330: Loaded config def from plugin (callback/slack)
  3376 1529095833.11369: Loading CallbackModule 'stderr' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/stderr.py (found_in_cache=False, class_only=True)
  3376 1529095833.11460: assigned :doc
  3376 1529095833.11475: 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)
  3376 1529095833.11538: Loaded config def from plugin (callback/stderr)
  3376 1529095833.11629: Loading CallbackModule 'syslog_json' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/syslog_json.py (found_in_cache=False, class_only=True)
  3376 1529095833.11759: assigned :doc
  3376 1529095833.11777: Loaded config def from plugin (callback/syslog_json)
  3376 1529095833.11807: Loading CallbackModule 'timer' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/timer.py (found_in_cache=False, class_only=True)
  3376 1529095833.11875: assigned :doc
  3376 1529095833.11906: Loading CallbackModule 'tree' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/tree.py (found_in_cache=False, class_only=True)
  3376 1529095833.11994: assigned :doc
  3376 1529095833.12064: Loading CallbackModule 'unixy' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/unixy.py (found_in_cache=False, class_only=True)
  3376 1529095833.12277: assigned :doc
  3376 1529095833.12301: 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)
  3376 1529095833.12369: Loaded config def from plugin (callback/unixy)
  3376 1529095833.12381: Loading CallbackModule 'yaml' from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/yaml.py (found_in_cache=False, class_only=True)
  3376 1529095833.12490: assigned :doc
  3376 1529095833.12530: 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)
  3376 1529095833.12642: Loaded config def from plugin (callback/yaml)
  3376 1529095833.12676: in VariableManager get_vars()
  3376 1529095833.12982: Loading FilterModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py
  3376 1529095833.13941: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py
  3376 1529095833.13968: Loading FilterModule 'json_query' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py
  3376 1529095833.14008: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py
  3376 1529095833.14663: Loading FilterModule 'network' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py
  3376 1529095833.14697: Loading FilterModule 'urlsplit' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py
  3376 1529095833.14772: Loading TestModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py
  3376 1529095833.14797: Loading TestModule 'files' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py
  3376 1529095833.14818: Loading TestModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py
  3376 1529095833.15197: done with get_vars()
  3376 1529095833.15244: in VariableManager get_vars()
  3376 1529095833.15303: Loading FilterModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
  3376 1529095833.15313: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
  3376 1529095833.15318: Loading FilterModule 'json_query' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
  3376 1529095833.15324: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
  3376 1529095833.15329: Loading FilterModule 'network' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py (found_in_cache=True, class_only=False)
  3376 1529095833.15333: Loading FilterModule 'urlsplit' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py (found_in_cache=True, class_only=False)
  3376 1529095833.15371: Loading TestModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
  3376 1529095833.15379: Loading TestModule 'files' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
  3376 1529095833.15385: Loading TestModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
  3376 1529095833.15482: done with get_vars()

PLAY [all] *************************************************************************************************************
  3376 1529095833.16403: Loading StrategyModule 'linear' from /usr/lib/python2.7/dist-packages/ansible/plugins/strategy/linear.py
  3376 1529095833.16433: getting the remaining hosts for this loop
  3376 1529095833.16444: done getting the remaining hosts for this loop
  3376 1529095833.16452: building list of next tasks for hosts
  3376 1529095833.16456: getting the next task for host dc14wanrt01
  3376 1529095833.16462: done getting next task for host dc14wanrt01
  3376 1529095833.16467:  ^ task is: TASK: meta (flush_handlers)
  3376 1529095833.16475:  ^ 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
  3376 1529095833.16480: done building task lists
  3376 1529095833.16483: counting tasks in each state of execution
  3376 1529095833.16487: done counting tasks in each state of execution:
        num_setups: 0
        num_tasks: 1
        num_rescue: 0
        num_always: 0
  3376 1529095833.16491: advancing hosts in ITERATING_TASKS
  3376 1529095833.16494: starting to advance hosts
  3376 1529095833.16498: getting the next task for host dc14wanrt01
  3376 1529095833.16504: done getting next task for host dc14wanrt01
  3376 1529095833.16510:  ^ task is: TASK: meta (flush_handlers)
  3376 1529095833.16516:  ^ 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
  3376 1529095833.16519: done advancing hosts to next task
  3376 1529095833.16542: done queuing things up, now waiting for results queue to drain
  3376 1529095833.16551: results queue empty
  3376 1529095833.16556: checking for any_errors_fatal
  3376 1529095833.16560: done checking for any_errors_fatal
  3376 1529095833.16564: checking for max_fail_percentage
  3376 1529095833.16568: done checking for max_fail_percentage
  3376 1529095833.16571: checking to see if all hosts have failed and the running result is not ok
  3376 1529095833.16575: done checking to see if all hosts have failed
  3376 1529095833.16578: getting the remaining hosts for this loop
  3376 1529095833.16586: done getting the remaining hosts for this loop
  3376 1529095833.16593: building list of next tasks for hosts
  3376 1529095833.16598: getting the next task for host dc14wanrt01
  3376 1529095833.16604: done getting next task for host dc14wanrt01
  3376 1529095833.16610:  ^ task is: TASK: Copy image to destination devices
  3376 1529095833.16615:  ^ 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
  3376 1529095833.16620: done building task lists
  3376 1529095833.16623: counting tasks in each state of execution
  3376 1529095833.16636: done counting tasks in each state of execution:
        num_setups: 0
        num_tasks: 1
        num_rescue: 0
        num_always: 0
  3376 1529095833.16642: advancing hosts in ITERATING_TASKS
  3376 1529095833.16647: starting to advance hosts
  3376 1529095833.16651: getting the next task for host dc14wanrt01
  3376 1529095833.16657: done getting next task for host dc14wanrt01
  3376 1529095833.16663:  ^ task is: TASK: Copy image to destination devices
  3376 1529095833.16668:  ^ 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
  3376 1529095833.16672: done advancing hosts to next task
  3376 1529095833.16680: getting variables
  3376 1529095833.16685: in VariableManager get_vars()
  3376 1529095833.16732: Loading FilterModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
  3376 1529095833.16739: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
  3376 1529095833.16745: Loading FilterModule 'json_query' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
  3376 1529095833.16752: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
  3376 1529095833.16758: Loading FilterModule 'network' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py (found_in_cache=True, class_only=False)
  3376 1529095833.16763: Loading FilterModule 'urlsplit' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py (found_in_cache=True, class_only=False)
  3376 1529095833.16791: Loading TestModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
  3376 1529095833.16798: Loading TestModule 'files' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
  3376 1529095833.16804: Loading TestModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
  3376 1529095833.16900: Calling all_inventory to load vars for dc14wanrt01
  3376 1529095833.16909: Calling groups_inventory to load vars for dc14wanrt01
  3376 1529095833.16918: Calling all_plugins_inventory to load vars for dc14wanrt01
  3376 1529095833.17084: Loading VarsModule 'host_group_vars' from /usr/lib/python2.7/dist-packages/ansible/plugins/vars/host_group_vars.py
  3376 1529095833.17382:        processing dir /home/vagrant/playbooks/wanrt/group_vars
  3376 1529095833.17821: Loading data from /home/vagrant/playbooks/wanrt/group_vars/all.yaml
  3376 1529095833.18336: Calling all_plugins_play to load vars for dc14wanrt01
  3376 1529095833.18380: 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)
  3376 1529095833.18566: Loading data from /home/vagrant/playbooks/wanrt/group_vars/all.yaml
  3376 1529095833.18583: Calling groups_plugins_inventory to load vars for dc14wanrt01
  3376 1529095833.18663: 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)
  3376 1529095833.19041:        processing dir /home/vagrant/playbooks/wanrt/group_vars
  3376 1529095833.19716:        processing dir /home/vagrant/playbooks/wanrt/group_vars
  3376 1529095833.20055: Loading data from /home/vagrant/playbooks/wanrt/group_vars/dc14.yaml
  3376 1529095833.20545: Calling groups_plugins_play to load vars for dc14wanrt01
  3376 1529095833.20571: 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)
  3376 1529095833.21012: Loading data from /home/vagrant/playbooks/wanrt/group_vars/dc14.yaml
  3376 1529095833.21230: 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)
  3376 1529095833.21653:        processing dir /home/vagrant/playbooks/wanrt/host_vars
  3376 1529095833.22006: Loading data from /home/vagrant/playbooks/wanrt/host_vars/dc14wanrt01.yaml
  3376 1529095833.22622: 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)
  3376 1529095833.23000: Loading data from /home/vagrant/playbooks/wanrt/host_vars/dc14wanrt01.yaml
  3376 1529095833.23025: done with get_vars()
  3376 1529095833.23045: done getting variables
  3376 1529095833.23053: sending task start callback, copying the task so we can template it temporarily
  3376 1529095833.23058: done copying, going to template now
  3376 1529095833.23063: done templating
  3376 1529095833.23066: here goes the callback...

TASK [Copy image to destination devices] *******************************************************************************
  3376 1529095833.23077: sending task start callback
  3376 1529095833.23082: entering _queue_task() for dc14wanrt01/cisco_file_transfer
  3376 1529095833.23086: Creating lock for cisco_file_transfer
  3376 1529095833.23206: worker is 1 (out of 1 available)
  3376 1529095833.23250: exiting _queue_task() for dc14wanrt01/cisco_file_transfer
  3376 1529095833.23270: done queuing things up, now waiting for results queue to drain
  3376 1529095833.23279: waiting for pending results...
  3384 1529095833.23720: running TaskExecutor() for dc14wanrt01/TASK: Copy image to destination devices
  3384 1529095833.23822: in run() - task 02b2c284-5dd0-2395-e2e6-000000000010
  3384 1529095833.23924: calling self._execute()
  3384 1529095833.33788: Loading FilterModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
  3384 1529095833.33807: Loading FilterModule 'ipaddr' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
  3384 1529095833.33926: Loading FilterModule 'json_query' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
  3384 1529095833.33959: Loading FilterModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
  3384 1529095833.33969: Loading FilterModule 'network' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/network.py (found_in_cache=True, class_only=False)
  3384 1529095833.34021: Loading FilterModule 'urlsplit' from /usr/lib/python2.7/dist-packages/ansible/plugins/filter/urlsplit.py (found_in_cache=True, class_only=False)
  3384 1529095833.34086: Loading TestModule 'core' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
  3384 1529095833.34098: Loading TestModule 'files' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
  3384 1529095833.34204: Loading TestModule 'mathstuff' from /usr/lib/python2.7/dist-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
  3384 1529095833.41398: Loading Connection 'ssh' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py
  3384 1529095833.41745: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py
  3384 1529095833.41913: assigned :doc
  3384 1529095833.41986: Loading ModuleDocFragment 'shell_common' from /usr/lib/python2.7/dist-packages/ansible/utils/module_docs_fragments/shell_common.py
  3384 1529095833.42152: Loaded config def from plugin (shell/sh)
  3384 1529095833.42195: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
  3384 1529095833.43627: assigned :doc
  3384 1529095833.43720: Loaded config def from plugin (connection/ssh)
  3384 1529095833.43955: Loading ActionModule 'normal' from /usr/lib/python2.7/dist-packages/ansible/plugins/action/normal.py (searched paths: /usr/local/lib/python2.7/dist-packages/napalm_ansible/plugins/action:/usr/lib/python2.7/dist-packages/ansible/plugins/action)
  3384 1529095833.43966: starting attempt loop
  3384 1529095833.44009: running the handler
  3384 1529095833.44372: ANSIBALLZ: Using lock for cisco_file_transfer
  3384 1529095833.44391: ANSIBALLZ: Acquiring lock
  3384 1529095833.44462: ANSIBALLZ: Lock acquired: 140580880269968
  3384 1529095833.44493: ANSIBALLZ: Creating module
  3384 1529095833.58312: ANSIBALLZ: Writing module
  3384 1529095833.58369: ANSIBALLZ: Renaming module
  3384 1529095833.58426: ANSIBALLZ: Done creating module
  3384 1529095833.58546: _low_level_execute_command(): starting
  3384 1529095833.58579: _low_level_execute_command(): executing: /bin/sh -c 'echo ~cloudadm && sleep 0'
  3384 1529095839.48726: stdout chunk (state=2):
>>>
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c 'echo ~cloudadm && sleep 0'"<<<

  3384 1529095839.56092: stdout chunk (state=3):
>>><<<

  3384 1529095839.82361: stderr chunk (state=3):
>>>packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
<<<

  3384 1529095839.82387: stderr chunk (state=3):
>>><<<

  3384 1529095839.82455: _low_level_execute_command() done: rc=0, stdout=
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c 'echo ~cloudadm && sleep 0'", stderr=packet_write_wait: Connection to UNKNOWN port 0: Broken pipe

  3384 1529095839.82530: _low_level_execute_command(): starting
  3384 1529095839.82588: _low_level_execute_command(): executing: /bin/sh -c '( umask 77 && mkdir -p "` echo Line has invalid autocommand "/bin/sh -c '"'"'echo ~cloudadm && sleep 0'"'"'"/.ansible/tmp/ansible-tmp-1529095833.59-100435361354618 `" && echo ansible-tmp-1529095833.59-100435361354618="` echo Line has invalid autocommand "/bin/sh -c '"'"'echo ~cloudadm && sleep 0'"'"'"/.ansible/tmp/ansible-tmp-1529095833.59-100435361354618 `" ) && sleep 0'
  3384 1529095846.03679: stdout chunk (state=2):
>>>
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

<<<

  3384 1529095846.17012: stdout chunk (state=3):
>>>
Line has invalid autocommand "/bin/sh -c '( umask 77 && mkdir -p "` echo Line has invalid autocommand "/bin/sh -c '"'"'echo ~cloudadm && sleep 0'"'"'"/.ansible/tmp/ansible-tmp-1529095833.59-100435361354618 `" && echo ansible-tmp-1529095833.59-100435361354618="` echo Line has invalid a"<<<

  3384 1529095846.17173: stderr chunk (state=3):
>>>packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
<<<

  3384 1529095846.17263: stderr chunk (state=3):
>>><<<

  3384 1529095846.17334: stdout chunk (state=3):
>>><<<

  3384 1529095846.17791: _low_level_execute_command() done: rc=0, stdout=
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c '( umask 77 && mkdir -p "` echo Line has invalid autocommand "/bin/sh -c '"'"'echo ~cloudadm && sleep 0'"'"'"/.ansible/tmp/ansible-tmp-1529095833.59-100435361354618 `" && echo ansible-tmp-1529095833.59-100435361354618="` echo Line has invalid a", stderr=packet_write_wait: Connection to UNKNOWN port 0: Broken pipe

  3384 1529095846.17884: transferring module to remote "` echo Line has invalid a"/cisco_file_transfer.py
  3384 1529095846.19623: Sending initial data
  3384 1529095846.19711: Sent initial data (119 bytes)
  3384 1529095852.54193: stderr chunk (state=3):
>>>Connection closed
<<<

  3384 1529095852.54333: stderr chunk (state=3):
>>>packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
<<<

  3384 1529095852.54359: stdout chunk (state=3):
>>><<<

  3384 1529095852.54389: stderr chunk (state=3):
>>><<<

 [WARNING]: sftp transfer mechanism failed on [10.14.28.113]. Use ANSIBLE_DEBUG=1 to see detailed information

  3384 1529095852.54574:
  3384 1529095852.54580: Connection closed
packet_write_wait: Connection to UNKNOWN port 0: Broken pipe

  3384 1529095862.17073: stdout chunk (state=2):
>>><<<

  3384 1529095862.17139: stderr chunk (state=3):
>>>packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
<<<

  3384 1529095862.17160: stderr chunk (state=3):
>>><<<

  3384 1529095862.17247: done transferring module to remote
  3384 1529095862.17326: _low_level_execute_command(): starting
  3384 1529095862.17351: _low_level_execute_command(): executing: /bin/sh -c 'chmod u+x '"'"'"` echo Line has invalid a"/'"'"' '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'
  3384 1529095867.80164: stdout chunk (state=2):
>>>
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c 'chmod u+x '"'"'"` echo Line has invalid a"/'"'"' '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'"<<<

  3384 1529095867.86709: stderr chunk (state=3):
>>>packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
<<<

  3384 1529095867.86736: stdout chunk (state=3):
>>><<<

  3384 1529095867.86756: stderr chunk (state=3):
>>><<<

  3384 1529095867.86823: _low_level_execute_command() done: rc=0, stdout=
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c 'chmod u+x '"'"'"` echo Line has invalid a"/'"'"' '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'", stderr=packet_write_wait: Connection to UNKNOWN port 0: Broken pipe

  3384 1529095867.86866: _low_level_execute_command(): starting
  3384 1529095867.86903: _low_level_execute_command(): executing: /bin/sh -c '/usr/bin/python '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'
  3384 1529095873.44937: stdout chunk (state=2):
>>>
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c '/usr/bin/python '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'"<<<

  3384 1529095873.52074: stderr chunk (state=3):
>>>Shared connection to 10.14.28.113 closed.
<<<

  3384 1529095873.52321: stdout chunk (state=3):
>>><<<

  3384 1529095873.52619: _low_level_execute_command() done: rc=0, stdout=
***************************************************************************
*       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
***************************************************************************
*                                                                         *
*  You must have explicit permission to access or configure this device.  *
*  All activities performed on this device may be logged, and violations  *
*  of this policy may result in disciplinary action, and may be reported  *
*  to law enforcement. There is no right to privacy on this device.       *
*                                                                         *
***************************************************************************

dc14wanrt01 line 2

Line has invalid autocommand "/bin/sh -c '/usr/bin/python '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'", stderr=Shared connection to 10.14.28.113 closed.

  3384 1529095873.52786: done with _execute_module (cisco_file_transfer, {u'username': u'cloudadm', '_ansible_version': '2.5.4', '_ansible_selinux_special_fs': ['fuse', 'nfs', 'vboxsf', 'ramfs', '9p'], '_ansible_no_log': False, '_ansible_module_name': u'cisco_file_transfer', '_ansible_tmpdir': None, '_ansible_diff': False, '_ansible_verbosity': 0, '_ansible_syslog_facility': u'LOG_USER', '_ansible_socket': None, u'host': u'10.14.28.113', u'source_file': u'/home/vagrant/playbooks/wanrt/test_file.txt', u'dest_file': u'test_file.txt', '_ansible_debug': True, '_ansible_shell_executable': u'/bin/sh', '_ansible_check_mode': False, u'password': u'WmSqcPyagEolFnGGnM8v\n'})
  3384 1529095873.52863: handler run complete
  3384 1529095873.52928: attempt loop complete, returning result
  3384 1529095873.52992: _execute() done
  3384 1529095873.53017: dumping result to json
  3384 1529095873.53060: done dumping result, returning
  3384 1529095873.53141: done running TaskExecutor() for dc14wanrt01/TASK: Copy image to destination devices [02b2c284-5dd0-2395-e2e6-000000000010]
  3384 1529095873.53248: sending task result for task 02b2c284-5dd0-2395-e2e6-000000000010
  3384 1529095873.53509: done sending task result for task 02b2c284-5dd0-2395-e2e6-000000000010
  3384 1529095873.53576: WORKER PROCESS EXITING
  3376 1529095873.54294: marking dc14wanrt01 as failed
  3376 1529095873.54371: marking host dc14wanrt01 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
  3376 1529095873.54405: ^ 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
  3376 1529095873.54425: getting the next task for host dc14wanrt01
  3376 1529095873.54439: host dc14wanrt01 is done iterating, returning
fatal: [dc14wanrt01]: FAILED! => changed=false
  module_stderr: |-
    Shared connection to 10.14.28.113 closed.
  module_stdout: |2-

    ***************************************************************************
    *       UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.         *
    ***************************************************************************
    *                                                                         *
    *  You must have explicit permission to access or configure this device.  *
    *  All activities performed on this device may be logged, and violations  *
    *  of this policy may result in disciplinary action, and may be reported  *
    *  to law enforcement. There is no right to privacy on this device.       *
    *                                                                         *
    ***************************************************************************

    dc14wanrt01 line 2

    Line has invalid autocommand "/bin/sh -c '/usr/bin/python '"'"'"` echo Line has invalid a"/cisco_file_transfer.py'"'"' && sleep 0'"
  msg: MODULE FAILURE
  rc: 0
  3376 1529095873.55459: no more pending results, returning what we have
  3376 1529095873.55508: results queue empty
  3376 1529095873.55520: checking for any_errors_fatal
  3376 1529095873.55584: done checking for any_errors_fatal
  3376 1529095873.55595: checking for max_fail_percentage
  3376 1529095873.55630: done checking for max_fail_percentage
  3376 1529095873.55686: checking to see if all hosts have failed and the running result is not ok
  3376 1529095873.55786: done checking to see if all hosts have failed
  3376 1529095873.55808: getting the remaining hosts for this loop
  3376 1529095873.55871: done getting the remaining hosts for this loop
  3376 1529095873.55907: building list of next tasks for hosts
  3376 1529095873.55939: getting the next task for host dc14wanrt01
  3376 1529095873.55970: host dc14wanrt01 is done iterating, returning
  3376 1529095873.55980: done building task lists
  3376 1529095873.56011: counting tasks in each state of execution
  3376 1529095873.56039: done counting tasks in each state of execution:
        num_setups: 0
        num_tasks: 0
        num_rescue: 0
        num_always: 0
  3376 1529095873.56069: all hosts are done, so returning None's for all hosts
  3376 1529095873.56096: done queuing things up, now waiting for results queue to drain
  3376 1529095873.56124: results queue empty
  3376 1529095873.56150: checking for any_errors_fatal
  3376 1529095873.56174: done checking for any_errors_fatal
  3376 1529095873.56205: checking for max_fail_percentage
  3376 1529095873.56230: done checking for max_fail_percentage
  3376 1529095873.56253: checking to see if all hosts have failed and the running result is not ok
  3376 1529095873.56272: done checking to see if all hosts have failed
  3376 1529095873.56304: getting the next task for host dc14wanrt01
  3376 1529095873.56310: host dc14wanrt01 is done iterating, returning
  3376 1529095873.56330: running handlers

PLAY RECAP *************************************************************************************************************
dc14wanrt01                : ok=0    changed=0    unreachable=0    failed=1

  3376 1529095873.56572: RUNNING CLEANUP
vagrant@ansible:~/playbooks/wanrt$
ktbyers commented 6 years ago

@iamroddo Do you have it set to connection: local?

This repository is pretty much deprecated. I am not really doing any maintenance on it. You might want to check out ntc_file_copy in the ntc-ansible library.

iamroddo commented 6 years ago

I have connection: local set. I need to use ProxyCommand which I think ntc_file_copy doesn't support. I've seen that Netmiko now supports file_transfer. I'll try making a script to do the same job.