diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-01-26 16:10:11 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-01-26 16:10:11 +0100 |
commit | 09ae1230753c1db32eac9c3e30ebceab7d6d2b56 (patch) | |
tree | 6cf4bdd2d35b12d03dae3085d566716c6e79142c /roles/install_wireguard_backbone/tasks | |
parent | b7615bd04e0baf7be264af874f1ab7260402e49d (diff) |
fix
Diffstat (limited to 'roles/install_wireguard_backbone/tasks')
-rw-r--r-- | roles/install_wireguard_backbone/tasks/uplink_tasks.yml | 8 |
1 files changed, 4 insertions, 4 deletions
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([]) }}" |