summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_backbone/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_wireguard_backbone/tasks')
-rw-r--r--roles/install_wireguard_backbone/tasks/uplink_tasks.yml8
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([]) }}"