Each instance will have its own port to loop back on kosmos.codepro.be.
Assign a unique port to each, and save it in sysrc.
We'll have to script something around autossh, but this is the main new
ansible feature to test.
domoticamachines:
hosts:
pennestraat20:
+ control_port: 2400
pennestraat22:
+ control_port: 2401
pennestraat22a:
+ control_port: 2402
qemu:
+ control_port: 2403
poudriere-image:
+ control_port: 0
- name: test playbook
hosts: domoticamachines
tasks:
+ - name: autossh config
+ community.general.sysrc:
+ name: control_port
+ value: "{{ control_port }}"
- name: Install nginx
community.general.pkgng:
name: nginx