Am Mittwoch, 6. September 2017 12:43:21 UTC+2 schrieb Ask 21: > > I didn't created a playbook yet because i don't know which way/module will > be best - is there any option like using a "negotiate" lineinfile operation > or maybe using shell/fetch and doing a diff with a template > authorized_keys2 file? > I have a vault file containing all ssh keys and then I use the authorized_key module to manage the keys.
http://docs.ansible.com/ansible/latest/authorized_key_module.html But you can use also the copy module to make sure that the remote file has the required content. -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dfe3a446-b885-4fe5-946a-e680b8e4c568%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
