Hi,

I have a scenario where I need to create a new user, and then execute 
commands as that user.  E.g.:
- name: create user
  user: name=newUser password=hashedPass shell=/bin/bash
- name: run command as user
  shell: echo $USER > ~/user.out
  remote_user: newUser

However, Ansible does not know how to ssh in as newUser.  What is the 
preferred method for doing this?

Thanks, Jared

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to