Re: [ansible-project] Ansible running script with wrong user

2020-05-01 Thread Brian Coca
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

[ansible-project] Ansible running script with wrong user

2020-04-17 Thread George James
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