aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-11 15:47:25 +0100
committerbinary <me@rgoncalves.se>2021-03-11 15:47:25 +0100
commitbd18c309549aca9a85766949377431b256dac6fd (patch)
treef7bfabd4aeabd033bbe8ff2db6e7962853c70a0c /roles/wireguard/tasks/main.yml
parentcdd0af5eeaa957e9d5473d3616253f617de625dc (diff)
downloadinfrastructure-bd18c309549aca9a85766949377431b256dac6fd.tar.gz
Use ansible distribution for freebsd specific tasks.
Diffstat (limited to 'roles/wireguard/tasks/main.yml')
-rw-r--r--roles/wireguard/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index 26dfbf6..9875457 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -59,14 +59,14 @@
path: /etc/rc.conf
regexp: "^wireguard_enable"
line: wireguard_enable="YES"
- when: os_distribution == "freebsd"
+ when: ansible_distribution == "FreeBSD"
- name: enable interface for freebsd
lineinfile:
path: /etc/rc.conf
regexp: "^wireguard_interfaces"
line: wireguard_interfaces="{{ global.dcontroller }}"
- when: os_distribution == "freebsd"
+ when: ansible_distribution == "FreeBSd"
- name: generate and enable init script
include_role: name=rc
@@ -76,7 +76,7 @@
rc_name: wireguard
rc_user: "{{ user_root }}"
ignore_errors: true
- when: os_distribution != "freebsd"
+ when: ansible_distribution != "FreeBSD"
- name: generate server interface
template:
remember that computers suck.