Sign inSign up

chzerv/debian9-systemd-ansible

By chzerv

•Updated about 4 years ago

Debian 9 (Stretch) container capable to use systemd, for Ansible role and playbook testing.

Image
0

10K+

chzerv/debian9-systemd-ansible repository overview

⁠Debian 9 (Stretch) Container Image for Ansible Testing

This Dockerfile builds a Debian 9 based container, capable to use systemd, mainly for Ansible role testing.

⁠Tags

Tags are used to distinguish between Ansible versions and builds (e.g., testing vs stable).

  • latest: Latest stable version of Ansible.

⁠How to build locally

  1. Install Docker⁠.

  2. Clone the repository:

    git clone https://github.com/chzerv/debian9-systemd-ansible.git
    
  3. cd into the directory and run docker build -t debian9-systemd-ansible .

docker can be substituted for any other container engine, e.g., Podman⁠.

⁠How to use

  1. Install Docker⁠.

  2. Pull this image from Docker hub:

    docker pull chzerv/debian9-systemd-ansible:latest
    

    If you built the image locally, feel free to use it instead.

  3. Run a container:

    docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro debian9-systemd-ansible:latest
    
  4. Run Ansible inside that container:

    docker exec -it $container_id ansible --version
    

⁠Notes

This image is used for testing Ansible roles and playbooks locally and/or in CI, hence, security is not a concern. It is not intended or recommended to use this image in production environments.

Tag summary

Content type

Image

Digest

sha256:f28d00e63…

Size

253.8 MB

Last updated

about 4 years ago

docker pull chzerv/debian9-systemd-ansible