Skip to content

Commit

Permalink
Break out a separate reload.yml task file in the workers role.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmcclure committed Nov 27, 2015
1 parent e1fbf17 commit b5cdb1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 1 addition & 8 deletions deploy/roles/workers/tasks/main.yml
Expand Up @@ -5,11 +5,4 @@
- include: elasticsearch.yml
- include: tika.yml
- include: supervisor.yml

- name: Reload supervisor
shell: supervisorctl reload

- name: Restart nginx
service:
name: nginx
state: restarted
- include: reload.yml
9 changes: 9 additions & 0 deletions deploy/roles/workers/tasks/reload.yml
@@ -0,0 +1,9 @@
---

- name: Reload supervisor
shell: supervisorctl reload

- name: Restart nginx
service:
name: nginx
state: restarted

0 comments on commit b5cdb1f

Please sign in to comment.