/docker-fedora33-ansible

A systemd-enabled Fedora 33 Linux Docker image, in the spirit of geerlingguy/docker-fedora32-ansible.

Primary LanguageDockerfileMIT LicenseMIT

Fedora Ansible Test Image

Fedora Docker container for Ansible playbook and role testing.

How to Build

If you need to build the image on your own locally, do the following:

  1. Install Docker.
  2. cd into this directory.
  3. Run docker build -t docker-fedora33-ansible .

How to Use

  1. Install Docker.
  2. Pull this image from Docker Hub: docker pull cisagov/docker-fedora33-ansible:latest (or use the image you built earlier).
  3. Run a container from the image: docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro cisagov/docker-fedora33-ansible:latest.
  4. Use Ansible inside the container: a. docker exec --tty [container_id] env TERM=xterm ansible --version b. docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/ansible/playbook.yml --syntax-check

Author Information

This was originated by:

Shane Frasier - jeremy.frasier@trio.dhs.gov from here

Heavily based on geerlingguy/docker-fedora32-ansible by Jeff Geerling AKA @geerlingguy.