Re: [ansible-project] how to run task as unprivileged user

2017-04-20 Thread Kai Stian Olstad
On 20. april 2017 08:31, Павел Марченко wrote: Good day. I have a sudo user(user1) on the server and i need to run a task as another unprivilleged user(user2). A dont know a password for user2 and regular way to run something as user2 that login as user1 run "sudo -i", run "su user2" and run some

[ansible-project] how to run task as unprivileged user

2017-04-20 Thread Павел Марченко
Good day. I have a sudo user(user1) on the server and i need to run a task as another unprivilleged user(user2). A dont know a password for user2 and regular way to run something as user2 that login as user1 run "sudo -i", run "su user2" and run something else. And now a qestion, how can i do th