On Saturday, March 29, 2014 3:18:23 PM UTC-7, Francisco Reyes wrote: > > New to ansible. > > Trying to create a playbook to do the following: > 1 Checks if a user exists and if not create > 2 Check if /home/user/.ssh exists and if not create it > 3 Copy ssh keys for the user > > > Ansible modules are pretty much idempotent, so you shouldn't need to check something and then create it...
What you want to do here is.... 1) Create a user 2) Add the .ssh directory 3) copy the .ssh keys No need to check things (Ansible does that for you). Adam -- 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/84a9ea94-5f1a-40ae-b79f-19639397a720%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
