Remove the sudo and use become in the role overall.
This commit is contained in:
parent
1a4f171d1c
commit
1d486a8b27
|
@ -1,3 +1,2 @@
|
|||
- name: restart nodejs app
|
||||
supervisorctl: name={{ nodejs_app_service_name }} state=restarted config=/etc/supervisor/supervisord.conf
|
||||
sudo: yes
|
||||
|
|
|
@ -8,5 +8,4 @@
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://127.0.0.1:{{ nodejs_app_port }};
|
||||
sudo: yes
|
||||
notify: restart nginx
|
||||
|
|
Loading…
Reference in New Issue