diff --git a/defaults/main.yml b/defaults/main.yml index ab9d49a..e0bfec5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,4 +7,9 @@ deploy_adguard_enable_dhcp: false deploy_adguard_enable_doh: true deploy_adguard_enable_dot: false deploy_adguard_enable_doq: false -deploy_adguard_enable_dnscrypt: false \ No newline at end of file +deploy_adguard_enable_dnscrypt: false +deploy_adguard_virtual_ip: + enable: false + interface: eth0 + vip_addr: "192.168.1.53" +deploy_adguard_config: {} diff --git a/tasks/configure.yml b/tasks/configure.yml new file mode 100644 index 0000000..e69de29 diff --git a/tasks/main.yml b/tasks/main.yml index 9bb6fef..9d9710f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,4 @@ --- # task/main file for deploy_adguard +- name: "Import prerequisites.yml" + ansible.builtin.include_tasks: prerequisites.yml \ No newline at end of file diff --git a/tasks/prerequisites.yml b/tasks/prerequisites.yml new file mode 100644 index 0000000..c9e8361 --- /dev/null +++ b/tasks/prerequisites.yml @@ -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'