Bugs fixed and improvements added in task Wireguard #1
@@ -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
|
||||
|
||||
@@ -50,10 +50,4 @@
|
||||
ansible.builtin.systemd:
|
||||
name: "bind9"
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: "Enable and start named"
|
||||
ansible.builtin.systemd:
|
||||
name: "named"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: yes
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user