Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 608 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 608 Bytes

ansible-docker-image

Overview

this is a Dockerfile for building an image with ansible

How to use

start by cloneing this repo.

then copy/move the playbooks you want to test to the testing-playbooks folder.

build the continer image using docker/podman

docker build -t {image-name} .  

run the continer

docker run -it {image-name} bash

all the playbooks that were passed to the testing-playbooks folder will now be under /playbooks folder and you can run them to verify that they are working correctly

cd /playbooks
ansible-playbook (playbook-name}