Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

rubemlrm/docker-fedora-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Fedora Ansible Test Images

Build Docker pulls

Fedora Docker containers for Ansible playbook and role testing.

Important Notes

Based on the work created by Jeff Geerling. I'm just using the base dockerFile that Jeff created and applying to the new versions of fedora including the testing ones. The ideia and the main work was made by him, so if you want, support him.

How to Build

This image is built on Docker Hub automatically any time the upstream OS container is rebuilt, and any time a commit is made or merged to the main branch. But 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 fedora<version>-ansible <dockerFile>

How to Use

  1. Install Docker.
  2. Pull this image from Docker Hub: docker pull rubemlrm/fedora36-ansible:latest (or use the image you built earlier, e.g. fedora36-ansible:latest).
  3. Run a container from the image: docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro rubemlrm/fedora36-ansible:latest (to test my Ansible roles, I add in a volume mounted from the current working directory with --volume=`pwd`:/etc/ansible/roles/role_under_test:ro).
  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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published