diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-12-12 22:15:01 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-12-12 22:15:01 +0100 |
commit | db698b595e7ff088c96d00ef5285a0d634aff1be (patch) | |
tree | 4ec4242098a774e0de7ae1a4637b45b949e4ecce /roles/wireguard/tasks | |
parent | ee3e324680a15d59429b1a2a0615fe787d169068 (diff) | |
download | rules-db698b595e7ff088c96d00ef5285a0d634aff1be.tar.gz |
refactor: pass ansible-lint with yaml header
Diffstat (limited to 'roles/wireguard/tasks')
-rw-r--r-- | roles/wireguard/tasks/configuration.yml | 2 | ||||
-rw-r--r-- | roles/wireguard/tasks/cron.yml | 2 | ||||
-rw-r--r-- | roles/wireguard/tasks/keys.yml | 2 | ||||
-rw-r--r-- | roles/wireguard/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/wireguard/tasks/service.yml | 2 |
5 files changed, 10 insertions, 0 deletions
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 |