roles/nginx/tasks/main.yml in taperole-1.0.0 vs roles/nginx/tasks/main.yml in taperole-1.0.1

- old
+ new

@@ -10,11 +10,10 @@ file: path=/etc/nginx/sites-enabled/default state=absent tags: [nginx] - name: Configure App nginx template: src=nginx_unicorn.j2 dest=/etc/nginx/sites-enabled/{{ app_name }} - notify: restart nginx tags: [nginx] - name: Install monit nginx config template: src=nginx_monit.j2 dest=/etc/monit/conf.d/nginx @@ -24,7 +23,8 @@ - name: Reload Monit command: bash -lc "monit reload" when: nginx_monit_config.changed - name: Restart nginx + remote_user: "{{ deployer_user.name }}" command: bash -lc "sudo monit restart nginx" tags: [restart_nginx]