Open a port for HTTP forwarding, so kosmos can terminate https traffic and
forward things to the appropriate devices.
qemu:
control_port: 2400
ansible_port: 2400
+ http_port: 2480
ansible_host: kosmos.sigsegv.be
pennestraat20:
control_port: 2401
ansible_port: 2401
+ http_port: 2481
ansible_host: kosmos.sigsegv.be
pennestraat22:
control_port: 2402
ansible_port: 2402
+ http_port: 2482
ansible_host: kosmos.sigsegv.be
pennestraat22a:
control_port: 2403
ansible_port: 2403
+ http_port: 2483
ansible_host: kosmos.sigsegv.be
initial:
community.general.sysrc:
name: control_port
value: "{{ control_port }}"
+ - name: http port
+ community.general.sysrc:
+ name: http_port
+ value: "{{ http_port }}"
- name: Install nginx
community.general.pkgng:
name: nginx
/usr/local/bin/sudo -u kp \
/usr/local/bin/tmux new-session -d \
"autossh -M 0 -p 2207 -N -R ${control_port}:localhost:22 \
+ -R ${http_port}:localhost:80 \
-o ExitOnForwardFailure=yes \
domotica@kosmos.sigsegv.be"
}