On Sun, Nov 30, 2014 at 1:36 AM, xuxu <[email protected]> wrote: > This is what my playbook looks like: > --- > > - hosts: ec2 > user: root > roles: > - createuser > > - hosts: ec2 > user: winery > roles: > - winery > > The task for createuser looks like this: > > --- > > - name: create user for given app > user: name=winery > > The first task works as expected, but then it can't continue on as the user > "winery", because it doesn't have sufficient privileges to login to the > server as that user. > > How do you continue on from here? > > Can I upload an SSL key for the user so that I can login without problems?
How about using the authorized_key module http://docs.ansible.com/authorized_key_module.html It has an option to specify which user to add the key to. -- 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/CADTL0oatGRZfbL%2Big3tbTUVMqHLAUQsgxUBi2W5-mc_yM7riAw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
