added template for configuration file

This commit is contained in:
ext.blanson 2023-05-29 22:20:10 +02:00
parent 13a4423259
commit 9076746691

View File

@ -1,5 +1,13 @@
---
# task/configure file for deploy_adguard
- name: "Copy adguard.service file"
ansible.builtin.template:
src: "adguard.service.j2"
dest: "/etc/systemd/system/adguard.service"
owner: root
group: root
mode: '0644'
- name: "Copy docker-compose.yml template"
ansible.builtin.template:
src: "docker-compose.yml.j2"
@ -7,3 +15,12 @@
owner: root
group: root
mode: '0600'
- 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