From 9e16f39b59069e752bbd24f5408e39e8ac24ec79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 17 Dec 2022 18:03:39 +0100 Subject: refactor(roles): force byte conversion by ansible --- roles/wireguard/tasks/configuration.yml | 4 ++-- roles/wireguard/tasks/main.yml | 4 ++-- roles/wireguard/tasks/service.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'roles/wireguard/tasks') 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 -- cgit v1.2.3