Separate service and config handlers
This commit is contained in:
parent
a92fbc43f2
commit
7f80dca6c6
@ -26,9 +26,8 @@
|
||||
- gitea
|
||||
- packages
|
||||
notify: Verify binary with gpg
|
||||
- name: Copy templates
|
||||
- name: Copy configuration files
|
||||
loop:
|
||||
- { src: "gitea.service", dest: "/etc/systemd/system/gitea.service", owner: "{{ gitea.user }}", mode: "600" }
|
||||
- { src: "gitea.ini", dest: "/etc/gitea/app.ini", owner: "{{ gitea.user }}", mode: "600" }
|
||||
template:
|
||||
follow: yes
|
||||
@ -38,4 +37,18 @@
|
||||
owner: "{{ item.owner }}"
|
||||
tags:
|
||||
- gitea
|
||||
notify: Run service actions
|
||||
notify:
|
||||
- Run service actions
|
||||
- name: Copy systemd service
|
||||
loop:
|
||||
- { src: "gitea.service", dest: "/etc/systemd/system/gitea.service", owner: "{{ gitea.user }}", mode: "600" }
|
||||
template:
|
||||
follow: yes
|
||||
src: "{{ item.src }}.j2"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode }}"
|
||||
owner: "{{ item.owner }}"
|
||||
tags:
|
||||
- gitea
|
||||
notify:
|
||||
- Restart services
|
||||
|
Reference in New Issue
Block a user