Skip to content

Commit

Permalink
Superuser needed for restart/reload
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseKilo committed Dec 19, 2016
1 parent cdf03bc commit 0879f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
- name: wsgi restart
service: name={{item.name}}-wsgi state=restarted
with_items: "{{wsgi_applications}}"
become: yes

- name: wsgi reload
service: name={{item.name}}-wsgi state=reloaded
with_items: "{{wsgi_applications}}"
become: yes
1 change: 1 addition & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@

- name: Ensure that the services are started
service: name={{item.name}}-wsgi state=started enabled=yes
become: yes
ignore_errors: yes
with_items: "{{wsgi_applications}}"

0 comments on commit 0879f1f

Please sign in to comment.