rename some tasks more generically

This commit is contained in:
Gabriel Augendre 2024-10-09 23:00:28 +02:00
parent f016336bd8
commit 559c75c762
2 changed files with 6 additions and 6 deletions

View file

@ -27,7 +27,7 @@
src: "{{base_dir}}/goatcounter-{{release.tag}}"
dest: "{{base_dir}}/goatcounter"
state: link
- name: write goatcounter unit file
- name: write service unit file
become: true
template:
src: ../templates/goatcounter.service.j2
@ -37,7 +37,7 @@
- restart goatcounter
- name: flush handlers
meta: flush_handlers
- name: ensure goatcounter is running
- name: ensure service is running
become: true
service:
name: goatcounter
@ -49,7 +49,7 @@
become: true
systemd:
daemon_reload: true
- name: restart goatcounter
- name: restart service
become: true
service:
name: goatcounter

View file

@ -1,7 +1,7 @@
- name: lyon-transports
hosts: servers
tasks:
- name: write lyon-transports unit file
- name: write service file
become: true
template:
src: ../templates/lyon-transports.service.j2
@ -11,7 +11,7 @@
- restart lyon-transports
- name: flush handlers
meta: flush_handlers
- name: ensure lyon-transports is running
- name: ensure service is running
become: true
service:
name: lyon-transports
@ -23,7 +23,7 @@
become: true
systemd:
daemon_reload: true
- name: restart lyon-transports
- name: restart service
become: true
service:
name: lyon-transports