diff options
author | binary <me@rgoncalves.se> | 2021-03-11 15:47:25 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-03-11 15:47:25 +0100 |
commit | bd18c309549aca9a85766949377431b256dac6fd (patch) | |
tree | f7bfabd4aeabd033bbe8ff2db6e7962853c70a0c /roles | |
parent | cdd0af5eeaa957e9d5473d3616253f617de625dc (diff) | |
download | infrastructure-bd18c309549aca9a85766949377431b256dac6fd.tar.gz |
Use ansible distribution for freebsd specific tasks.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/wireguard/tasks/main.yml | 6 |
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: |