Skip to content

File upload to all hosts #137

Locked Answered by ansibleguy76
infinite1by0 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ansibleguy76
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ansibleguy76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants