deploy_adguard/handlers/main.yml

21 lines
476 B
YAML
Raw Normal View History

2023-05-28 18:03:38 +00:00
---
# handlers file for deploy_adguard
2023-05-31 20:05:56 +00:00
- name: "Reload systemd file"
ansible.builtin.systemd:
daemon_reload: true
listen: "systemctl-daemon-reload"
- name: "Enable consul service"
ansible.builtin.service:
name: adguard
enabled: true
listen: "systemctl-enable-adguard"
- name: "Start consul service"
ansible.builtin.service:
name: adguard
state: restarted
listen: "systemctl-restart-adguard"
throttle: 1
when: deploy_adguard_start_service