mko@ansible-master:/etc/ansible$ ansible-playbook -i inventory.yml firmware_upgrade.yml -vvvv ansible-playbook [core 2.12.1] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/mko/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible collection location = /home/mko/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] jinja version = 2.10.1 libyaml = True Using /etc/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /etc/ansible/inventory.yml as it did not pass its verify_file() method script declined parsing /etc/ansible/inventory.yml as it did not pass its verify_file() method Parsed /etc/ansible/inventory.yml inventory source with yaml plugin Loading collection arubanetworks.aos_switch from /home/mko/.ansible/collections/ansible_collections/arubanetworks/aos_switch Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3/dist-packages/ansible/plugins/callback/default.py Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: firmware_upgrade.yml *********************************************************************************************************************************************************************************************************** Positional arguments: firmware_upgrade.yml verbosity: 4 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/etc/ansible/inventory.yml',) forks: 5 1 plays in firmware_upgrade.yml PLAY [all] ******************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ******************************************************************************************************************************************************************************************************************* task path: /etc/ansible/firmware_upgrade.yml:2 redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli Loading collection ansible.netcommon from /home/mko/.ansible/collections/ansible_collections/ansible/netcommon <10.0.0.1> attempting to start connection <10.0.0.1> using connection plugin ansible.netcommon.network_cli Found ansible-connection at path /usr/bin/ansible-connection <10.0.0.1> local domain socket does not exist, starting it <10.0.0.1> control socket path is /home/mko/.ansible/pc/fb7ed7aa3d <10.0.0.1> redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli <10.0.0.1> Loading collection ansible.netcommon from /home/mko/.ansible/collections/ansible_collections/ansible/netcommon <10.0.0.1> Loading collection arubanetworks.aos_switch from /home/mko/.ansible/collections/ansible_collections/arubanetworks/aos_switch <10.0.0.1> local domain socket listeners started successfully <10.0.0.1> loaded cliconf plugin ansible_collections.arubanetworks.aos_switch.plugins.cliconf.arubaoss from path /home/mko/.ansible/collections/ansible_collections/arubanetworks/aos_switch/plugins/cliconf/arubaoss.py for network_os arubanetworks.aos_switch.arubaoss <10.0.0.1> ssh type is set to paramiko <10.0.0.1> <10.0.0.1> local domain socket path is /home/mko/.ansible/pc/fb7ed7aa3d <10.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: mko <10.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l `"&& mkdir "` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528 `" && echo ansible-tmp-1642933833.4509864-63087-221982983625528="` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528 `" ) && sleep 0' Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py <10.0.0.1> PUT /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/tmpn9m34vhe TO /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528/AnsiballZ_setup.py <10.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528/ /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528/AnsiballZ_setup.py && sleep 0' <10.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528/AnsiballZ_setup.py && sleep 0' <10.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933833.4509864-63087-221982983625528/ > /dev/null 2>&1 && sleep 0' ok: [switch1] META: ran handlers TASK [image upload] ********************************************************************************************************************************************************************************************************************** task path: /etc/ansible/firmware_upgrade.yml:8 redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli Loading collection ansible.netcommon from /home/mko/.ansible/collections/ansible_collections/ansible/netcommon <10.0.0.1> attempting to start connection <10.0.0.1> using connection plugin ansible.netcommon.network_cli Found ansible-connection at path /usr/bin/ansible-connection <10.0.0.1> found existing local domain socket, using it! <10.0.0.1> updating play_context for connection <10.0.0.1> <10.0.0.1> local domain socket path is /home/mko/.ansible/pc/fb7ed7aa3d <10.0.0.1> Using network group action arubaoss for arubaoss_command connection transport is aossapi for 10.0.0.1 None is not valid api version.using aossapi v6.0 instead <10.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: mko <10.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l `"&& mkdir "` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119 `" && echo ansible-tmp-1642933837.1054683-63158-119358892033119="` echo /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119 `" ) && sleep 0' redirecting module_util ansible.module_utils.network.common.parsing to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.parsing redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils Using module file /home/mko/.ansible/collections/ansible_collections/arubanetworks/aos_switch/plugins/modules/arubaoss_command.py <10.0.0.1> PUT /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/tmpespth0sm TO /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119/AnsiballZ_arubaoss_command.py <10.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119/ /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119/AnsiballZ_arubaoss_command.py && sleep 0' <10.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119/AnsiballZ_arubaoss_command.py && sleep 0' <10.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/mko/.ansible/tmp/ansible-local-63082zrxx7r9l/ansible-tmp-1642933837.1054683-63158-119358892033119/ > /dev/null 2>&1 && sleep 0' ok: [switch1] => { "changed": false, "invocation": { "module_args": { "api_version": "None", "commands": [ "copy tftp flash 10.0.0.100 WC_16_10_0019.swi secondary" ], "host": null, "interval": 1, "match": "all", "output_file": null, "password": null, "port": null, "provider": { "api_version": null, "host": "10.0.0.1", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "port": 80, "ssh_keyfile": null, "timeout": 30, "transport": "aossapi", "use_proxy": false, "use_ssl": false, "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "validate_certs": false }, "retries": 10, "ssh_keyfile": null, "timeout": null, "use_ssl": null, "username": null, "validate_certs": false, "wait_for": null } }, "stdout": [ "timeout value 30 seconds reached while trying to send command: b'copy tftp flash 10.0.0.100 WC_16_10_0019.swi secondary'" ], "stdout_lines": [ [ "timeout value 30 seconds reached while trying to send command: b'copy tftp flash 10.0.0.100 WC_16_10_0019.swi secondary'" ] ] } TASK [debug] ***************************************************************************************************************************************************************************************************************************** task path: /etc/ansible/firmware_upgrade.yml:12 redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli Loading collection ansible.netcommon from /home/mko/.ansible/collections/ansible_collections/ansible/netcommon <10.0.0.1> attempting to start connection <10.0.0.1> using connection plugin ansible.netcommon.network_cli Found ansible-connection at path /usr/bin/ansible-connection <10.0.0.1> found existing local domain socket, using it! <10.0.0.1> invoked shell using ssh_type: paramiko <10.0.0.1> ssh connection done, setting terminal <10.0.0.1> loaded terminal plugin for network_os arubanetworks.aos_switch.arubaoss <10.0.0.1> Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds <10.0.0.1> firing event: on_open_shell() <10.0.0.1> Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds <10.0.0.1> ssh connection has completed successfully [ERROR]: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/paramiko/channel.py", line 699, in recv out = self.in_buffer.read(nbytes, self.timeout) File "/usr/lib/python3/dist- packages/paramiko/buffered_pipe.py", line 164, in read raise PipeTimeout() paramiko.buffered_pipe.PipeTimeout During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mko/.ansible/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py", line 994, in send response = self.receive( File "/home/mko/.ansible/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py", line 945, in receive response = self.receive_paramiko( File "/home/mko/.ansible/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py", line 759, in receive_paramiko data = self._ssh_shell.recv(256) File "/usr/lib/python3/dist-packages/paramiko/channel.py", line 701, in recv raise socket.timeout() socket.timeout <10.0.0.1> updating play_context for connection <10.0.0.1> <10.0.0.1> local domain socket path is /home/mko/.ansible/pc/fb7ed7aa3d ok: [switch1] => { "result": { "changed": false, "failed": false, "stdout": [ "timeout value 30 seconds reached while trying to send command: b'copy tftp flash 10.0.0.100 WC_16_10_0019.swi secondary'" ], "stdout_lines": [ [ "timeout value 30 seconds reached while trying to send command: b'copy tftp flash 10.0.0.100 WC_16_10_0019.swi secondary'" ] ] } } META: ran handlers META: ran handlers PLAY RECAP ******************************************************************************************************************************************************************************************************************************* switch1 : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0