my ansible_ssh_user is root, but I want a particular role to use a 
particular user.

For example, create a directory with this remote_user as owner and group. I 
know I can set the owner-permission using file module, but I was expecting 
the following to work

- hosts: webservers
  remote_user: "meow"
  roles:
    - clone_repo

  tasks:
    - name: write directory
      file: path=/home/meow/dir state=directory

In addition to directory creation, clone_repo actually clone a repo. But 
remote_user is not actually used. They are root/root.

Did I misread the doc? 
http://docs.ansible.com/playbooks_intro.html#hosts-and-users

Thanks

-- 
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/63a47337-f61c-4db6-a129-5a6d08b68f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to