Split container package list.

This commit is contained in:
Andreas B. Mundt 2021-11-20 14:38:22 +01:00 committed by Andreas B. Mundt
parent 327f2eefac
commit 0ed4230794
3 changed files with 19 additions and 16 deletions

View file

@ -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

View file

@ -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

View file

@ -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: