become: yes + become_method: sudo forces teh nginx_user to use root
to execute the tasks. Considering you are restarting a service, this
seems correct.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscri
I have the below task in ansible, but when I take a look at the process
using `ps aux | grep nginx`, I see that the process is being run by the
root user instead of the nginx user is there a way I can fix this.
- name: Install Nginx Ubuntu
hosts: all
remote_user: "{{ NGINX_USER }}"
become: yes