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