added a few options and prereqs

This commit is contained in:
Bertrand Lanson 2023-05-28 20:24:51 +02:00
parent 9bb59523a4
commit 0697d65438
4 changed files with 33 additions and 1 deletions

View File

@ -7,4 +7,9 @@ deploy_adguard_enable_dhcp: false
deploy_adguard_enable_doh: true deploy_adguard_enable_doh: true
deploy_adguard_enable_dot: false deploy_adguard_enable_dot: false
deploy_adguard_enable_doq: false deploy_adguard_enable_doq: false
deploy_adguard_enable_dnscrypt: false deploy_adguard_enable_dnscrypt: false
deploy_adguard_virtual_ip:
enable: false
interface: eth0
vip_addr: "192.168.1.53"
deploy_adguard_config: {}

0
tasks/configure.yml Normal file
View File

View File

@ -1,2 +1,4 @@
--- ---
# task/main file for deploy_adguard # task/main file for deploy_adguard
- name: "Import prerequisites.yml"
ansible.builtin.include_tasks: prerequisites.yml

25
tasks/prerequisites.yml Normal file
View File

@ -0,0 +1,25 @@
---
# task/prerequisites file for deploy_adguard
- name: "Create adguard directory"
ansible.builtin.file:
path: "{{ deploy_adguard_directory }}"
state: directory
owner: root
group: root
mode: '0755'
- name: "Create adguard/conf directory"
ansible.builtin.file:
path: "{{ deploy_adguard_directory }}/conf"
state: directory
owner: root
group: root
mode: '0755'
- name: "Create adguard/data directory"
ansible.builtin.file:
path: "{{ deploy_adguard_directory }}/data"
state: directory
owner: root
group: root
mode: '0755'