diff --git a/tasks/main.yml b/tasks/main.yml index 0e0dd44..52a95f3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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