Skip to content

Commit

Permalink
Merge pull request #63 from silvio/sfr/stop-before-start
Browse files Browse the repository at this point in the history
uninstall: first stop the service, then remove env-file
  • Loading branch information
mhutter authored Mar 27, 2024
2 parents 58ac3ec + 6850a90 commit 8dfae1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/uninstall.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
- name: Remove ENV file for {{ service_name }}.service
file:
path: "{{ sysconf_dir }}/{{ container_name }}"
state: absent

- name: Disable and stop {{ container_name }}
systemd:
name: '{{ service_name }}.service'
enabled: false
state: stopped

- name: Remove ENV file for {{ service_name }}.service
file:
path: "{{ sysconf_dir }}/{{ container_name }}"
state: absent

- name: Remove unit {{ service_name }}.service
file:
path: /etc/systemd/system/{{ service_name }}.service
Expand Down

0 comments on commit 8dfae1d

Please sign in to comment.