aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:03:39 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:29:39 +0100
commit9e16f39b59069e752bbd24f5408e39e8ac24ec79 (patch)
tree330100ffd054bd274bfe11426aa0ecd7f267d550 /roles/wireguard/tasks
parent83cfb7f2e072e63356acdc6640df849d78741813 (diff)
downloadrules-9e16f39b59069e752bbd24f5408e39e8ac24ec79.tar.gz
refactor(roles): force byte conversion by ansible
Diffstat (limited to 'roles/wireguard/tasks')
-rw-r--r--roles/wireguard/tasks/configuration.yml4
-rw-r--r--roles/wireguard/tasks/main.yml4
-rw-r--r--roles/wireguard/tasks/service.yml2
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
remember that computers suck.