deploy_gitea_runner/handlers/main.yml

21 lines
513 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"
- name: "Enable gitea-runner service"
2023-07-27 17:12:18 +00:00
ansible.builtin.service:
name: gitea-runner
2023-07-27 17:12:18 +00:00
enabled: true
listen: "systemctl-enable-gitea-runner"
2023-07-27 17:12:18 +00:00
- name: "Start gitea-runner service"
2023-07-27 17:12:18 +00:00
ansible.builtin.service:
name: gitea-runner
2023-07-27 17:12:18 +00:00
state: restarted
listen: "systemctl-restart-gitea-runner"
2023-07-27 17:12:18 +00:00
throttle: 1
when: deploy_gitea_runner_start_service