From 926018150c47e21e764e010e4be3589a31df14d4 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sun, 5 Dec 2021 16:54:16 -0500 Subject: [PATCH] fix CIDR bug when using 0.0.0.0 --- roles/lxd_host/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/lxd_host/tasks/main.yml b/roles/lxd_host/tasks/main.yml index 057865b..080af60 100644 --- a/roles/lxd_host/tasks/main.yml +++ b/roles/lxd_host/tasks/main.yml @@ -2,7 +2,7 @@ - name: main lxd_host block vars: img_server: https://images.linuxcontainers.org - alp_img_alias: alpine/3.13/amd64 + alp_img_alias: alpine/3.15/amd64 lxc_cmd: /snap/bin/lxc lxd_subnet_pfx: 10.98.46 lxd_bridge: lxdbr0 @@ -40,7 +40,7 @@ in_interface: "{{ host_iface }}" protocol: tcp match: tcp - source: "{{ (host_ipt_ssh_cidr is defined) | ternary(host_ipt_ssh_cidr, '0.0.0.0') }}" + source: "{{ (host_ipt_ssh_cidr is defined) | ternary(host_ipt_ssh_cidr, '0.0.0.0/0') }}" jump: DNAT destination_port: "{{ hostvars[item]['ansible_port'] }}" to_destination: "{{ hostvars[item]['internal_ip'] }}"