diff options
Diffstat (limited to 'roles/wireguard')
-rw-r--r-- | roles/wireguard/tasks/configuration.yml | 4 | ||||
-rw-r--r-- | roles/wireguard/tasks/main.yml | 4 | ||||
-rw-r--r-- | roles/wireguard/tasks/service.yml | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/roles/wireguard/tasks/configuration.yml b/roles/wireguard/tasks/configuration.yml index 610c191..0a2009e 100644 --- a/roles/wireguard/tasks/configuration.yml +++ b/roles/wireguard/tasks/configuration.yml @@ -4,7 +4,7 @@ ansible.builtin.template: src: wireguard.conf.j2 dest: "{{ wireguard_local_dir }}/{{ item }}.conf" - mode: 0600 + mode: "0600" vars: host: "{{ hostvars[item] }}" run_once: true @@ -17,4 +17,4 @@ dest: "{{ wireguard_dir }}/{{ wireguard_domain_controller }}.conf" owner: 0 group: 0 - mode: 0600 + mode: "0600" diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 0e2343d..31b3655 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -4,7 +4,7 @@ ansible.builtin.file: path: "{{ wireguard_local_dir }}" state: directory - mode: 0700 + mode: "0700" run_once: true delegate_to: localhost @@ -13,7 +13,7 @@ path: "{{ wireguard_dir }}" owner: 0 group: 0 - mode: 0700 + mode: "0700" state: directory - name: include key generation diff --git a/roles/wireguard/tasks/service.yml b/roles/wireguard/tasks/service.yml index 516cee1..85849ee 100644 --- a/roles/wireguard/tasks/service.yml +++ b/roles/wireguard/tasks/service.yml @@ -7,7 +7,7 @@ line: "/usr/local/bin/wg-quick up {{ wireguard_domain_controller }}" owner: 0 create: true - mode: 0644 + mode: "0644" when: ansible_distribution == "OpenBSD" - name: restart wireguard interface |