2023-05-28 22:06:27 +00:00
|
|
|
---
|
|
|
|
# task/configure file for deploy_adguard
|
2023-05-29 20:20:10 +00:00
|
|
|
- name: "Copy adguard.service file"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "adguard.service.j2"
|
|
|
|
dest: "/etc/systemd/system/adguard.service"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
2023-05-30 18:23:27 +00:00
|
|
|
notify:
|
|
|
|
- systemctl_daemon_reload
|
2023-05-29 20:20:10 +00:00
|
|
|
|
2023-05-28 22:06:27 +00:00
|
|
|
- name: "Copy docker-compose.yml template"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "docker-compose.yml.j2"
|
|
|
|
dest: "{{ deploy_adguard_directory }}/docker-compose.yml"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0600'
|
2023-05-30 18:23:27 +00:00
|
|
|
notify:
|
|
|
|
- systemctl_restart_adguard
|
2023-05-29 20:20:10 +00:00
|
|
|
|
|
|
|
- name: "Copy AdGuardHome.yaml"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "AdGuardHome.yaml.j2"
|
|
|
|
dest: "{{ deploy_adguard_directory }}/conf/AdGuardHome.yaml"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0600'
|
|
|
|
when: deploy_adguard_config is not empty
|
2023-05-30 18:23:27 +00:00
|
|
|
notify:
|
|
|
|
- systemctl_restart_adguard
|