Split container package list.
This commit is contained in:
parent
327f2eefac
commit
0ed4230794
3 changed files with 19 additions and 16 deletions
16
edubox.yml
16
edubox.yml
|
@ -3,7 +3,7 @@
|
||||||
## for educational use on a host, for example to learn ansible!
|
## for educational use on a host, for example to learn ansible!
|
||||||
## All containers use an apt cache on the host system and forward port
|
## All containers use an apt cache on the host system and forward port
|
||||||
## 22 (ssh), 80 (http) and 443 (https) to ports >= 10000, 10100 and 10200
|
## 22 (ssh), 80 (http) and 443 (https) to ports >= 10000, 10100 and 10200
|
||||||
## respectively. A user 'ansible' in the 'sudo' group is prepared,
|
## respectively. A user 'ansi' in the 'sudo' group is prepared,
|
||||||
## either with empty password or an initial password to be set below.
|
## either with empty password or an initial password to be set below.
|
||||||
##
|
##
|
||||||
## Modifications of the initial containers are kept in an overlay
|
## Modifications of the initial containers are kept in an overlay
|
||||||
|
@ -31,6 +31,20 @@
|
||||||
contpwd: ""
|
contpwd: ""
|
||||||
## Adjust the number of containers here:
|
## Adjust the number of containers here:
|
||||||
containers: "{{ range(0, 9 + 1) | list }}"
|
containers: "{{ range(0, 9 + 1) | list }}"
|
||||||
|
## Additional packages to be installed in the container:
|
||||||
|
cont_packages_extra:
|
||||||
|
- bind9-dnsutils
|
||||||
|
- file
|
||||||
|
- locales
|
||||||
|
- xz-utils
|
||||||
|
- lsof
|
||||||
|
- wget
|
||||||
|
- bind9-host
|
||||||
|
- libc-l10n
|
||||||
|
- traceroute
|
||||||
|
- bzip2
|
||||||
|
- netcat-traditional
|
||||||
|
- telnet
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: install apt-cacher-ng
|
- name: install apt-cacher-ng
|
||||||
|
|
|
@ -5,20 +5,9 @@ cont_packages:
|
||||||
- sudo
|
- sudo
|
||||||
- python3
|
- python3
|
||||||
- auto-apt-proxy
|
- auto-apt-proxy
|
||||||
|
|
||||||
- bash-completion
|
- bash-completion
|
||||||
- bind9-dnsutils
|
|
||||||
- file
|
|
||||||
- locales
|
|
||||||
- xz-utils
|
|
||||||
- lsof
|
|
||||||
- wget
|
|
||||||
- bind9-host
|
|
||||||
- man-db
|
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
|
- man-db
|
||||||
- manpages
|
- manpages
|
||||||
- libc-l10n
|
|
||||||
- traceroute
|
cont_packages_extra: []
|
||||||
- bzip2
|
|
||||||
- netcat-traditional
|
|
||||||
- telnet
|
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
command:
|
command:
|
||||||
cmd: >
|
cmd: >
|
||||||
debootstrap
|
debootstrap
|
||||||
--include={{ cont_packages | join(',') }}
|
--include={{ cont_packages | union(cont_packages_extra) | join(',') }}
|
||||||
--components=main,contrib,non-free stable
|
--components=main,contrib,non-free stable
|
||||||
{{ contname }}00 http://deb.debian.org/debian
|
{{ contname }}00 http://deb.debian.org/debian
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Add table
Reference in a new issue