diff options
Diffstat (limited to 'roles/wireguard/tasks')
-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: |