I need to have my ansible playbook to pull a file via scp to each host in inventory from a host not in inventory.
In my example I am running my playbook from 10.3.3.10
my inventory:
[linux]
10.2.2.10
10.2.2.11
10.2.2.12
Here is an example command of what I want to run on each host.
scp admin@10.10.10.100:/backup/scripts/special_script /root
I cant seem to find a way to accomplish this with fetch
outside of just running shell
and using the scp command as is.
Is there a way to accomplish this with fetch, or a built in idempotent method?