--- # ============================================================================= # Gitea Act Runner - Ansible Handlers # ============================================================================= # # Handlers are triggered by 'notify' in tasks and run once at the end of play. # They provide a way to restart services only when configuration changes. # # Usage in tasks: # - name: Deploy config # template: ... # notify: restart act_runner # # ============================================================================= # Reload systemd configuration after unit file changes. # Required before systemctl can see updated unit files. - name: Reload systemd ansible.builtin.systemd: daemon_reload: true # Restart the act_runner service to apply configuration changes. - name: Restart act_runner ansible.builtin.systemd: name: act_runner state: restarted