Provide playbook and role to deploy containers.
The containers are deployed for educational purposes with user 'ansible' in the sudo group and an empty password. SSH login is available via ports 10000 upwards on the host. Port 80 is forwarded as well (ssh port + 100). The container's rootfs is read only with an overlay: After restart of the container, modifications are lost.
This commit is contained in:
parent
b120a31c7d
commit
b920bdf52b
4 changed files with 142 additions and 0 deletions
1
roles/educontainer/templates/hostname.j2
Normal file
1
roles/educontainer/templates/hostname.j2
Normal file
|
@ -0,0 +1 @@
|
|||
{{ contname }}{{ "%02d" | format(item|int) }}
|
Loading…
Add table
Add a link
Reference in a new issue