From 1d486a8b274173d65ca0bb50eb71364ff9678986 Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Sun, 2 Oct 2016 15:45:47 -0400 Subject: [PATCH] Remove the sudo and use become in the role overall. --- handlers/main.yml | 1 - tasks/main.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index ff9ee61..4cdc54d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,3 +1,2 @@ - name: restart nodejs app supervisorctl: name={{ nodejs_app_service_name }} state=restarted config=/etc/supervisor/supervisord.conf - sudo: yes diff --git a/tasks/main.yml b/tasks/main.yml index cfaff91..3431e0d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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