Removed data not related to WireGuard

This commit is contained in:
2026-10-25 21:09:20 +03:00
parent af81a7b73b
commit 4b23dccbe2
10 changed files with 9 additions and 184 deletions
@@ -1,20 +0,0 @@
---
- name: "Import named.conf.local"
tags: bind9
ansible.builtin.template:
src: named.conf.local.j2
dest: /etc/bind/named.conf.local
owner: root
group: bind
mode: '0644'
- name: "Import data base domain serti.fun"
tags: bind9
ansible.builtin.template:
src: db.serti.fun.j2
dest: /etc/bind/db.serti.fun
owner: root
group: bind
mode: '0644'
notify: "restart bind9"
@@ -6,12 +6,3 @@
value: 1
state: present
reload: yes
- name: "Upload nftable"
ansible.builtin.template:
src: nftables.conf.j2
dest: /etc/nftables.conf
owner: root
group: root
mode: '0644'
notify: "restart nftables"
@@ -1,13 +1,5 @@
---
- name: "Change repos"
ansible.builtin.template:
src: mirror-yandex.ru.j2
dest: /etc/apt/sources.list
owner: root
group: root
mode: '0744'
- name: "Install packages"
ansible.builtin.apt:
name: "{{ default_packages + wireguard_packages }}"
-16
View File
@@ -30,24 +30,8 @@
mode: '0600'
notify: "restart wireguard"
- name: "Configure bind9"
tags: bind9
ansible.builtin.include_tasks: configure_bind9.yml
- name: "Enable and start nftables"
ansible.builtin.systemd:
name: "nftables"
state: started
enabled: yes
- name: "Enable and start wireguard"
ansible.builtin.systemd:
name: "wg-quick@{{ wireguard_interface }}"
state: started
enabled: yes
- name: "Enable and start bind9"
ansible.builtin.systemd:
name: "bind9"
state: started
enabled: yes