aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/service.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/wireguard/tasks/service.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/wireguard/tasks/service.yml')
-rw-r--r--roles/wireguard/tasks/service.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/roles/wireguard/tasks/service.yml b/roles/wireguard/tasks/service.yml
index 37f3cec..c9e7f60 100644
--- a/roles/wireguard/tasks/service.yml
+++ b/roles/wireguard/tasks/service.yml
@@ -1,16 +1,15 @@
- name: enable wireguard interface for OpenBSD
- lineinfile:
+ ansible.builtin.lineinfile:
path: /etc/rc.local
regexp: "^/usr/local/bin/wg-quick up {{ wireguard_domain_controller }}$"
line: "/usr/local/bin/wg-quick up {{ wireguard_domain_controller }}"
owner: 0
- owner: 0
create: true
mode: 0644
when: ansible_distribution == "OpenBSD"
- name: restart wireguard interface
- raw: |
+ ansible.builtin.raw: |
wg-quick down {{ wireguard_domain_controller }}
sleep {{ 10 | random(start=1) }}
wg-quick up {{ wireguard_domain_controller }}
@@ -18,5 +17,5 @@
register: result
- name: show wireguard output
- debug:
+ ansible.builtin.debug:
var: result
remember that computers suck.