From db698b595e7ff088c96d00ef5285a0d634aff1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 12 Dec 2022 22:15:01 +0100 Subject: refactor: pass ansible-lint with yaml header --- roles/wireguard/defaults/main.yml | 2 ++ roles/wireguard/tasks/configuration.yml | 2 ++ roles/wireguard/tasks/cron.yml | 2 ++ roles/wireguard/tasks/keys.yml | 2 ++ roles/wireguard/tasks/main.yml | 2 ++ roles/wireguard/tasks/service.yml | 2 ++ 6 files changed, 12 insertions(+) (limited to 'roles/wireguard') 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 -- cgit v1.2.3