Open birb57 opened 6 months ago
thanks for your support
can you explain what you are trying to achieve? Are you trying to build a custom execution environment? Are you trying to copy a file into awx-ee container (that is running in the awx-task pod)? If you can detail what you are ultimately trying to achieve, we can steer you in the right direction
if you are trying to push a file to your managed hosts, and want that file to exist in the automation job pod, you might look at this setting in AWX https://ansible.readthedocs.io/projects/awx/en/latest/administration/isolation_variables.html
Hi
I updated job settings in my awx web interface without success:
{ "msg": "Could not find or access '/var/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.9/site-packages/ansible/plugins/action/copy.py\", line 466, in run\n source = self._find_needle('files', source)\n File \"/usr/local/lib/python3.9/site-packages/ansible/plugins/action/init.py\", line 1455, in _find_needle\n return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)\n File \"/usr/local/lib/python3.9/site-packages/ansible/parsing/dataloader.py\", line 341, in path_dwim_relative_stack\n raise AnsibleFileNotFound(file_name=source, paths=[to_native(p) for p in search])\nansible.errors.AnsibleFileNotFound: Could not find or access '/var/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option\n", "invocation": { "src": "/var/tmp/DISABLE-CBC.pmod", "dest": "/tmp/DISABLE-CBC.pmod", "module_args": { "src": "/var/tmp/DISABLE-CBC.pmod", "dest": "/tmp/DISABLE-CBC.pmod" } }, "_ansible_no_log": null, "changed": false }
Thanks for your support
Hello
Yes I am trying to copy file from awx-ee via adhoc command from awx inventory
Thanks for your help
Le mer. 21 févr. 2024, 19:28, Seth Foster @.***> a écrit :
can you explain what you are trying to achieve? Are you trying to build a custom execution environment? Are you trying to copy a file into awx-ee container (that is running in the awx-task pod)? If you can detail what you are ultimately trying to achieve, we can steer you in the right direction
— Reply to this email directly, view it on GitHub https://github.com/ansible/awx/issues/14895#issuecomment-1957637558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7AIBZFKVZ4XTMBIIJAMPLYUY4DDAVCNFSM6AAAAABDOE44M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXGYZTONJVHA . You are receiving this because you authored the thread.Message ID: @.***>
Hi
Some news ?
Hi
some news ?
thanks
Please confirm the following
security@ansible.com
instead.)Bug Summary
Hi
I try to copy file from my awx adhoc command job (from inventory) but can not
src=/tmp/DISABLE-SHA1.pmod dest=/usr/share/crypto-policies/policies/modules/DISABLE-CBC.pmod owner=root group=root mode=644
I coped file locally in /tmp on awx-ee but job failed :
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option vmdedrfes03 | FAILED! => { "changed": false, "msg": "Could not find or access '/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option" }
AWX version
23.6.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
2.12.5
Operating system
Red Hat
Web browser
Chrome
Steps to reproduce
copy file on awx-ee first under /tmp
execute adhoc command via copy module (from awx inventory ) to copy file on each managed node
Expected results
file be copied
Actual results
expect the file to exist on the remote, see the remote_src option vmdedrfes03 | FAILED! => { "changed": false, "msg": "Could not find or access '/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option" }
Additional information
No response