From 09ae1230753c1db32eac9c3e30ebceab7d6d2b56 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Fri, 26 Jan 2018 16:10:11 +0100 Subject: fix --- roles/install_wireguard_backbone/tasks/uplink_tasks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/install_wireguard_backbone/tasks') diff --git a/roles/install_wireguard_backbone/tasks/uplink_tasks.yml b/roles/install_wireguard_backbone/tasks/uplink_tasks.yml index 05d8783..7eed705 100644 --- a/roles/install_wireguard_backbone/tasks/uplink_tasks.yml +++ b/roles/install_wireguard_backbone/tasks/uplink_tasks.yml @@ -11,7 +11,7 @@ src: wg2.conf.j2 dest: /etc/wireguard/wgbb{{ item.name }}.conf mode: 0400 - with_items: "{{ wireguard_bb_peers }}" + with_items: "{{ wireguard_bb_peers|default([]) }}" - name: create wireguard up scripts for fastds template: @@ -25,7 +25,7 @@ src: up2.sh.j2 dest: /etc/wireguard/upbb{{ item.name }}.sh mode: 0744 - with_items: "{{ wireguard_bb_peers }}" + with_items: "{{ wireguard_bb_peers|default([]) }}" - name: create wireguard down scripts for fastds template: @@ -39,7 +39,7 @@ src: down2.sh.j2 dest: /etc/wireguard/downbb{{ item.name }}.sh mode: 0744 - with_items: "{{ wireguard_bb_peers }}" + with_items: "{{ wireguard_bb_peers|default([]) }}" - name: start and enable wireguard mesh for fastds systemd: @@ -55,4 +55,4 @@ enabled: yes state: started daemon_reload: yes - with_items: "{{ wireguard_bb_peers }}" + with_items: "{{ wireguard_bb_peers|default([]) }}" -- cgit v1.2.3-54-g00ecf