File upload to all hosts #137
-
If i create a file upload field in form, how can i access the file in awx playbook. Actually I want to copy the file to all hosts |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Cant you use nfs mount from all hosts to the upload folder?
…On Sun, Jan 21, 2024, 20:12 infinite1by0 ***@***.***> wrote:
If i create a file upload field in form, how can i access the file in awx
playbook. Actually I want to copy the file to all hosts
—
Reply to this email directly, view it on GitHub
<#137>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFK2OVXWYPM5RY2MOVM54BLYPVLATAVCNFSM6AAAAABCEE66UCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGEYTCNZZHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The files get uploaded on the AnsibleForms host with temp names and extravars are sent with info about location and filenames. |
Beta Was this translation helpful? Give feedback.
The files get uploaded on the AnsibleForms host with temp names and extravars are sent with info about location and filenames.
The best way would be to create a playbook on your AWX that invokes a loop copy to all your hosts.
If you create a keypair on the AWX host
ssh-keygen -t rsa
And then copy the public key to authorized_keys on all hosts
scp ~/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
you should be able to scp passwordless. Then simple loop and copy and rename the file to original name for each host.