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

Re: [ansible-project] Re: variables in group_vars and host_vars do not load when using inventory directory

2020-05-01 Thread Brian Coca
host_vars/all.yml will not affect 'all hosts', just a host named 'all'. Still the group_vars/all.yml should work, my tests do show it working, can you provide more info like the full error and -vvv output? -- -- Brian Coca -- You received this message because you are subscribed to the G

[ansible-project] Re: variables in group_vars and host_vars do not load when using inventory directory

2020-05-01 Thread Navya Krishna Dobbala
Is your issue solved ? On Tuesday, 25 September 2018 02:04:48 UTC+5:30, myprogra...@gmail.com wrote: > > > A playbook I ran, returned this failure: > TASK [create-admin-user : Create the non-root user account] > > fatal: [415.791.30.131]: FAILED! => {"msg": "The task include