
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.
16 lines
335 B
YAML
16 lines
335 B
YAML
---
|
|
# ansible-playbook edubox.yml -i <eduboxIPaddress>, --ask-become-pass
|
|
|
|
- name: apply configuration to the edubox
|
|
hosts: all # eduboxes
|
|
remote_user: ansible
|
|
become: yes
|
|
vars:
|
|
contname: cont
|
|
containers: "{{ range(0, 9 + 1) | list }}"
|
|
extra_pkgs: [apt-cacher-ng]
|
|
|
|
roles:
|
|
- up2date-debian
|
|
- educontainer
|
|
|