Skip to content

Commit

Permalink
Ensure docker app is restarted if its unit file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chacal committed May 26, 2019
1 parent 408830a commit 19dba91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roles/docker-app/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: "{{ docker_app_name }} | Enable and start application"
- name: "{{ docker_app_name }} | Enable and restart application"
systemd:
name: "{{ docker_app_name }}"
daemon_reload: yes
state: started
state: restarted
enabled: yes
2 changes: 1 addition & 1 deletion roles/docker-app/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
- name: "{{ docker_app_name }} | Install systemd unit file"
template: src=docker-app.service.j2 dest=/lib/systemd/system/{{ docker_app_name }}.service owner=root group=root mode=0644
notify:
- "{{ docker_app_name }} | Enable and start application"
- "{{ docker_app_name }} | Enable and restart application"

0 comments on commit 19dba91

Please sign in to comment.