I am not sure if i clearly understood your question but, you might look
into this:
https://docs.ansible.com/ansible/latest/modules/add_host_module.html

*Regards,*
*Ankit*


On Tue, Sep 1, 2020 at 9:25 PM william...@gmail.com <
william.doss...@gmail.com> wrote:

> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/eb6c28eb-114b-445b-bd74-9359d1e78673n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/eb6c28eb-114b-445b-bd74-9359d1e78673n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACecUhuHUKuthtK3rwr8-uM%2BB5yq05eBq8ka%3Dg%2B32ER1Q7gKyg%40mail.gmail.com.

Reply via email to