Delete task Enable and start bind9 in main.yml and errors in tasks names have been corrected
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
- name: "Configure wireguard server"
|
- name: "Configure wireguard server"
|
||||||
ansible.builtin.include_tasks: configure_wireguard_server.yml
|
ansible.builtin.include_tasks: configure_wireguard_server.yml
|
||||||
|
|
||||||
- name: "Create client dirrectory"
|
- name: "Create client directory"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ wireguard_client_config_dir }}"
|
path: "{{ wireguard_client_config_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
mode: '0600'
|
mode: '0600'
|
||||||
notify: "restart wireguard"
|
notify: "restart wireguard"
|
||||||
|
|
||||||
- name: "Confiugre bind9"
|
- name: "Configure bind9"
|
||||||
tags: bind9
|
tags: bind9
|
||||||
ansible.builtin.include_tasks: configure_bind9.yml
|
ansible.builtin.include_tasks: configure_bind9.yml
|
||||||
|
|
||||||
@@ -50,10 +50,4 @@
|
|||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "bind9"
|
name: "bind9"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: "Enable and start named"
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: "named"
|
|
||||||
state: started
|
|
||||||
enabled: yes
|
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.0.name }}"
|
label: "{{ item.0.name }}"
|
||||||
|
|
||||||
- name: "Generate QR codes for moblie clients"
|
- name: "Generate QR codes for mobile clients"
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: "qrencode -t ansiutf8 < {{ wireguard_client_config_dir }}/{{ item.name }}.conf > {{ wireguard_client_config_dir }}/{{ item.name }}_qr.txt"
|
cmd: "qrencode -t ansiutf8 < {{ wireguard_client_config_dir }}/{{ item.name }}.conf > {{ wireguard_client_config_dir }}/{{ item.name }}_qr.txt"
|
||||||
loop: "{{ wireguard_clients }}"
|
loop: "{{ wireguard_clients }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user