diff --git a/handlers/main.yml b/handlers/main.yml index 64cef31..3747804 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/tasks/configure.yml b/tasks/configure.yml index 975654b..ecdb625 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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}}"