Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Fedora 32 container capable to use systemd, for Ansible role and playbook testing.

License

Notifications You must be signed in to change notification settings

chzerv/fedora32-systemd-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fedora 32 Container Image for Ansible Testing

This Dockerfile builds a Fedora 32 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/fedora32-systemd-ansible.git
  3. cd into the directory and run docker build -t fedora32-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/fedora32-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 fedora32-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.

About

Fedora 32 container capable to use systemd, for Ansible role and playbook testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published