Skip to content

Commit 19dba91

Browse files
committed
Ensure docker app is restarted if its unit file changes
1 parent 408830a commit 19dba91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/docker-app/handlers/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
- name: "{{ docker_app_name }} | Enable and start application"
2+
- name: "{{ docker_app_name }} | Enable and restart application"
33
systemd:
44
name: "{{ docker_app_name }}"
55
daemon_reload: yes
6-
state: started
6+
state: restarted
77
enabled: yes

roles/docker-app/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
- name: "{{ docker_app_name }} | Install systemd unit file"
2020
template: src=docker-app.service.j2 dest=/lib/systemd/system/{{ docker_app_name }}.service owner=root group=root mode=0644
2121
notify:
22-
- "{{ docker_app_name }} | Enable and start application"
22+
- "{{ docker_app_name }} | Enable and restart application"
2323

0 commit comments

Comments
 (0)