hybridadmin / docker-ansible-almalinux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlmaLinux Docker Images with ansible and systemd

Build Docker Pulls

AlmaLinux Docker images to be used for testing ansible playbooks and roles.

Quick reference

Supported tags and respective Dockerfile links

How to Build the image

  1. Install docker
  2. Clone the repo git clone https://github.com/hybridadmin/docker-ansible-almalinux.git
  3. cd into the directory
  4. Run docker build -t ansible-almalinux .

How to use this image

Pull the image using the following command:

docker pull hybridadmin/ansible-almalinux:latest

Run a container using the image with the following command:

docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro hybridadmin/ansible-almalinux:latest

Use ansible inside the container:

docker exec --tty [container_id] env TERM=xterm ansible --version
docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/playbook.yml --syntax-check

Connect to the container:

docker exec -it [container_id] /bin/bash

About


Languages

Language:Dockerfile 77.1%Language:Ruby 22.9%