Skip to content

Commit

Permalink
Giving up on ansible monit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Carrigan committed Aug 23, 2017
1 parent 15640b7 commit 68db124
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/release.yml
@@ -1,8 +1,7 @@
---
- when: deploy_type == "restart"
name: stop app
monit: name="{{ app_name }}" state=stopped timeout=300

command: bash -lc "sudo monit stop {{ app_name }}"

- when: deploy_type == "restart"
name: delete release
Expand All @@ -20,7 +19,7 @@

- when: deploy_type == "restart"
name: start app
monit: name="{{ app_name }}" state=started timeout=300
command: bash -lc "sudo monit start {{ app_name }}"


- when: deploy_type == "upgrade"
Expand Down

0 comments on commit 68db124

Please sign in to comment.