An Ubuntu container used for testing Ansible roles. Can run with systemd as init.
This repository currently supports the tags latest
, bookworm
, jammy
, bullseye
and buster
.
The tags follow the conventions of the official debian docker image.
# Create the container without systemd and log in
podman run --interactive --tty ghcr.io/stegmannb/container-debian-ansible:latest
# Create the container with systemd
podman run --detach --entrypoint /lib/systemd/systemd --cap-add SYS_ADMIN --volume /sys/fs/cgroup:/sys/fs/cgroup:ro --systemd=true ghcr.io/stegmannb/container-debian-ansible:latest
# Log into the container
podman exec --latest --interactive --tty /bin/bash
# Or use short flags
podman exec -itl /bin/bash
driver:
name: containers
platforms:
- name: molecule-debian-systemd
image: ghcr.io/stegmannb/container-debian-ansible:latest
groups:
- debian
command: /lib/systemd/systemd
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
capabilities:
- SYS_ADMIN
driver:
name: containers
platforms:
- name: molecule-debian-systemd
image: ghcr.io/stegmannb/container-debian-ansible:latest
groups:
- debian
- name: Create Ubuntu test container
containers.podman.podman_container:
name: test-debian
image: ghcr.io/stegmannb/container-debian-ansible:latest
groups:
- debian
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
capabilities:
- SYS_ADMIN
- name: Create Ubuntu test container
containers.podman.podman_container:
name: test-debian
image: ghcr.io/stegmannb/container-debian-ansible:latest
groups:
- debian