Separate service and config handlers

This commit is contained in:
Alex 2020-06-05 15:43:06 +02:00
parent a92fbc43f2
commit 7f80dca6c6
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 16 additions and 3 deletions

View File

@ -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