Could use ansible-playbook -i 

Mike

> On Sep 1, 2020, at 14:13, William Dossett <[email protected]> wrote:
> 
> 
> In the end I just used command: scp   seems to work adequately
>  
> Regards
> Bill
>  
> From: "[email protected]" <[email protected]> 
> on behalf of "[email protected]" <[email protected]>
> Reply-To: "[email protected]" 
> <[email protected]>
> Date: Tuesday, September 1, 2020 at 9:56 AM
> To: Ansible Project <[email protected]>
> Subject: [ansible-project] copy file to host not in inventory
>  
> Hi, sorry, I can't quite get my head around the last bit of my playbook.
>  
> I have a playbook that is doing ssh key rotations - it is pretty much all 
> working other than once it has generated the keys and used authorized_keys 
> module to put them on the hosts in the inventory, I want to copy the keys 
> back to my workstation.  Then it deletes the keys to cleanup.  I use 
> delegate_to and run_once when creating the keys, but how do I copy the keys 
> to my workstation which is not in my inventory - I am using dynamic 
> inventories in AWX... this isn't something I have run into before, I will 
> have to use a command worst case I guess, but welcome any alternative 
> suggestions.
>  
> thanks
> Bill
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/eb6c28eb-114b-445b-bd74-9359d1e78673n%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/DM6PR04MB50198329B9961486960564C1A32E0%40DM6PR04MB5019.namprd04.prod.outlook.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8AE9CEB9-C213-41D0-80AD-662598D92FF3%40gmail.com.

Reply via email to