aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-12 22:15:01 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-12 22:15:01 +0100
commitdb698b595e7ff088c96d00ef5285a0d634aff1be (patch)
tree4ec4242098a774e0de7ae1a4637b45b949e4ecce /roles/wireguard
parentee3e324680a15d59429b1a2a0615fe787d169068 (diff)
downloadrules-db698b595e7ff088c96d00ef5285a0d634aff1be.tar.gz
refactor: pass ansible-lint with yaml header
Diffstat (limited to 'roles/wireguard')
-rw-r--r--roles/wireguard/defaults/main.yml2
-rw-r--r--roles/wireguard/tasks/configuration.yml2
-rw-r--r--roles/wireguard/tasks/cron.yml2
-rw-r--r--roles/wireguard/tasks/keys.yml2
-rw-r--r--roles/wireguard/tasks/main.yml2
-rw-r--r--roles/wireguard/tasks/service.yml2
6 files changed, 12 insertions, 0 deletions
diff --git a/roles/wireguard/defaults/main.yml b/roles/wireguard/defaults/main.yml
index 2275c05..72cc66d 100644
--- a/roles/wireguard/defaults/main.yml
+++ b/roles/wireguard/defaults/main.yml
@@ -1,3 +1,5 @@
+---
+
wireguard_dir: /etc/wireguard
wireguard_local_dir: "{{ inventory_dir }}/files/secrets/wireguard"
wireguard_local_keys: "{{ inventory_hostname }}.keys"
diff --git a/roles/wireguard/tasks/configuration.yml b/roles/wireguard/tasks/configuration.yml
index 6925e2a..610c191 100644
--- a/roles/wireguard/tasks/configuration.yml
+++ b/roles/wireguard/tasks/configuration.yml
@@ -1,3 +1,5 @@
+---
+
- name: generate wireguard configuration
ansible.builtin.template:
src: wireguard.conf.j2
diff --git a/roles/wireguard/tasks/cron.yml b/roles/wireguard/tasks/cron.yml
index 482b34f..dd70e5c 100644
--- a/roles/wireguard/tasks/cron.yml
+++ b/roles/wireguard/tasks/cron.yml
@@ -1,3 +1,5 @@
+---
+
- name: add cronjob for keepalive
ansible.builtin.cron:
name: keepalive network traffic to domain controller
diff --git a/roles/wireguard/tasks/keys.yml b/roles/wireguard/tasks/keys.yml
index 128d943..ee42408 100644
--- a/roles/wireguard/tasks/keys.yml
+++ b/roles/wireguard/tasks/keys.yml
@@ -1,3 +1,5 @@
+---
+
- name: generate hosts keys
ansible.builtin.shell: |
set -o pipefail
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index d780186..0e2343d 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -1,3 +1,5 @@
+---
+
- name: create local wireguard directory
ansible.builtin.file:
path: "{{ wireguard_local_dir }}"
diff --git a/roles/wireguard/tasks/service.yml b/roles/wireguard/tasks/service.yml
index c9e7f60..516cee1 100644
--- a/roles/wireguard/tasks/service.yml
+++ b/roles/wireguard/tasks/service.yml
@@ -1,3 +1,5 @@
+---
+
- name: enable wireguard interface for OpenBSD
ansible.builtin.lineinfile:
path: /etc/rc.local
remember that computers suck.