diff --git a/handlers/main.yml b/handlers/main.yml index 0fbcfd4..22dc3af 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,2 +1,7 @@ --- # handlers file for Ansible-Gitea-Role + +- name: Restart Gitea + ansible.builtin.service: + name: gitea + state: restarted diff --git a/tasks/main.yml b/tasks/main.yml index 40a57cb..7db289a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -36,6 +36,7 @@ mode: "640" owner: root group: "{{ gitea_run_user }}" + notify: Restart Gitea - name: Add service file ansible.builtin.template: