Delete task Enable and start bind9 in main.yml and errors in tasks names have been corrected

This commit is contained in:
2026-08-30 00:47:37 +03:00
parent c76f61cefe
commit 8acb71961b
2 changed files with 4 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
- name: "Configure wireguard server"
ansible.builtin.include_tasks: configure_wireguard_server.yml
- name: "Create client dirrectory"
- name: "Create client directory"
ansible.builtin.file:
path: "{{ wireguard_client_config_dir }}"
state: directory
@@ -30,7 +30,7 @@
mode: '0600'
notify: "restart wireguard"
- name: "Confiugre bind9"
- name: "Configure bind9"
tags: bind9
ansible.builtin.include_tasks: configure_bind9.yml
@@ -51,9 +51,3 @@
name: "bind9"
state: started
enabled: yes
- name: "Enable and start named"
ansible.builtin.systemd:
name: "named"
state: started
enabled: yes

View File

@@ -56,7 +56,7 @@
loop_control:
label: "{{ item.0.name }}"
- name: "Generate QR codes for moblie clients"
- name: "Generate QR codes for mobile clients"
ansible.builtin.shell:
cmd: "qrencode -t ansiutf8 < {{ wireguard_client_config_dir }}/{{ item.name }}.conf > {{ wireguard_client_config_dir }}/{{ item.name }}_qr.txt"
loop: "{{ wireguard_clients }}"