Skip to content

srnathanx/ansible-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anisble Docker Example


Instead testing playbooks in VM , testing can be done in docker container in local before we move it to any target environment.

To Run Container

$ git clone https://github.com/jrsaravanan/ansible-docker.git
$ cd ansible-docker
$ sudo docker build -t ubuntu-ssh .
$ ./start.sh

To Execute

$ ansible-playbook -i inventory/local playbooks/echo.yml

To Stop and Remove

$ sudo docker stop ansible_test_host
$ sudo docker rm ansible_test_host

About

Ansible configuration automation testing using Dcoker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published