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"
|
|
|
|
|
2023-06-01 21:02:50 +00:00
|
|
|
- name: "Enable adguard service"
|
2023-05-31 20:05:56 +00:00
|
|
|
ansible.builtin.service:
|
|
|
|
name: adguard
|
|
|
|
enabled: true
|
|
|
|
listen: "systemctl-enable-adguard"
|
|
|
|
|
2023-06-01 21:02:50 +00:00
|
|
|
- name: "Start adguard service"
|
2023-05-31 20:05:56 +00:00
|
|
|
ansible.builtin.service:
|
|
|
|
name: adguard
|
|
|
|
state: restarted
|
|
|
|
listen: "systemctl-restart-adguard"
|
|
|
|
throttle: 1
|
|
|
|
when: deploy_adguard_start_service
|
2023-06-03 23:02:00 +00:00
|
|
|
|
|
|
|
- name: "Enable adguard-connect-proxy service"
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: adguard-connect-proxy
|
|
|
|
enabled: true
|
|
|
|
state: restarted
|
|
|
|
listen: "systemctl-enable-restart-adguard-connect-proxy"
|