deploy_gitea_runner/handlers/main.yml

21 lines
519 B
YAML
Raw Normal View History

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
listen: "systemctl-daemon-reload"
2023-08-11 18:06:15 +00:00
- name: "Enable gitea-runnner service"
2023-07-27 17:12:18 +00:00
ansible.builtin.service:
2023-08-11 18:06:15 +00:00
name: gitea-runnner
2023-07-27 17:12:18 +00:00
enabled: true
2023-08-11 18:06:15 +00:00
listen: "systemctl-enable-gitea-runnner"
2023-07-27 17:12:18 +00:00
2023-08-11 18:06:15 +00:00
- name: "Start gitea-runnner service"
2023-07-27 17:12:18 +00:00
ansible.builtin.service:
2023-08-11 18:06:15 +00:00
name: gitea-runnner
2023-07-27 17:12:18 +00:00
state: restarted
2023-08-11 18:06:15 +00:00
listen: "systemctl-restart-gitea-runnner"
2023-07-27 17:12:18 +00:00
throttle: 1
when: deploy_gitea_runner_start_service