Hello,
while using ansible and f5 modules to upload iso image to f5... it's failing with below trace. does not tell me much...
anyone able to upload image to F5 using ansible?
TASK [f5-upgrade : Upload BIG-IP image from user desktop to remote F5 node] ******************************************************************************** task path: /Users/123930/bitbucket/f5-automator/roles/f5-upgrade/tasks/main.yml:3 ESTABLISH LOCAL CONNECTION FOR USER: 123930 EXEC /bin/sh -c 'echo ~123930 && sleep 0' EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710" && echo ansible-tmp-1547493023.37-56197678303710="echo /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710" ) && sleep 0' Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_software_image.py PUT /Users/123930/.ansible/tmp/ansible-local-60706uusZ3G/tmp8nlo9v TO /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710/AnsiballZ_bigip_software_image.py EXEC /bin/sh -c 'chmod u+x /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710/ /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710/AnsiballZ_bigip_software_image.py && sleep 0' EXEC /bin/sh -c '/usr/local/opt/python@2/bin/python2.7 /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710/AnsiballZ_bigip_software_image.py && sleep 0' EXEC /bin/sh -c 'rm -f -r /Users/123930/.ansible/tmp/ansible-tmp-1547493023.37-56197678303710/ > /dev/null 2>&1 && sleep 0' The full traceback is: WARNING: The below traceback may not be related to the actual failure. File "/var/folders/jy/z8zx4bdx6r78hh4c100gp3sr7vx3zm/T/ansible_bigip_software_image_payload_y5yQ4F/__main__.py", line 473, in main results = mm.exec_module() File "/var/folders/jy/z8zx4bdx6r78hh4c100gp3sr7vx3zm/T/ansible_bigip_software_image_payload_y5yQ4F/__main__.py", line 260, in exec_module changed = self.present() File "/var/folders/jy/z8zx4bdx6r78hh4c100gp3sr7vx3zm/T/ansible_bigip_software_image_payload_y5yQ4F/__main__.py", line 283, in present return self.create() File "/var/folders/jy/z8zx4bdx6r78hh4c100gp3sr7vx3zm/T/ansible_bigip_software_image_payload_y5yQ4F/__main__.py", line 358, in create self.create_on_device() File "/var/folders/jy/z8zx4bdx6r78hh4c100gp3sr7vx3zm/T/ansible_bigip_software_image_payload_y5yQ4F/__main__.py", line 387, in create_on_device "Failed to upload the file."
fatal: [f5_shipstg1_ext01 -> localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "auth_provider": null, "force": null, "image": "/Users/123930/Downloads/BIGIP-13.0.0.0.0.1645.iso", "password": null, "provider": { "auth_provider": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "server": "10.137.194.20", "server_port": null, "ssh_keyfile": null, "timeout": null, "transport": "rest", "user": "admin", "validate_certs": false }, "server": null, "server_port": null, "state": "present", "transport": null, "user": null, "validate_certs": null } }, "msg": "Failed to upload the file." } to retry, use: --limit @/Users/123930/bitbucket/f5-automator/playbooks/upload-image_playbook.retry
PLAY RECAP ************************************************************************************************************************************************* f5_shipstg1_ext01 : ok=1 changed=0 unreachable=0 failed=1