|
|
|
|
@ -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'] }}" |
|
|
|
|
|