2023-06-24 15:44:22 +00:00
|
|
|
---
|
2023-07-27 17:12:18 +00:00
|
|
|
# handlers file for deploy_adguard
|
|
|
|
- name: "Reload systemd file"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
2023-12-02 22:02:05 +00:00
|
|
|
become: true
|
2023-07-27 17:12:18 +00:00
|
|
|
listen: "systemctl-daemon-reload"
|
|
|
|
|
2023-08-12 14:01:42 +00:00
|
|
|
- name: "Enable gitea-runner service"
|
2023-07-27 17:12:18 +00:00
|
|
|
ansible.builtin.service:
|
2023-08-12 14:01:42 +00:00
|
|
|
name: gitea-runner
|
2023-07-27 17:12:18 +00:00
|
|
|
enabled: true
|
2023-12-02 22:02:05 +00:00
|
|
|
become: true
|
2023-08-12 14:01:42 +00:00
|
|
|
listen: "systemctl-enable-gitea-runner"
|
2023-07-27 17:12:18 +00:00
|
|
|
|
2023-08-12 14:01:42 +00:00
|
|
|
- name: "Start gitea-runner service"
|
2023-07-27 17:12:18 +00:00
|
|
|
ansible.builtin.service:
|
2023-08-12 14:01:42 +00:00
|
|
|
name: gitea-runner
|
2023-07-27 17:12:18 +00:00
|
|
|
state: restarted
|
2023-08-12 14:01:42 +00:00
|
|
|
listen: "systemctl-restart-gitea-runner"
|
2023-07-27 17:12:18 +00:00
|
|
|
throttle: 1
|
|
|
|
when: deploy_gitea_runner_start_service
|
2023-12-02 22:02:05 +00:00
|
|
|
become: true
|