Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Getting starting with Ansible with a Docker LAB 🐳

This repo is part of my blog post on geting started with Ansible and becoming a DevOps.

The LAB

  • Docker Ubuntu

Plus a Docker Ansible, to have and avoid installing Ansible on your laptop.

Bootstrap Ansible LAB

To bootstrap this tutorial, I wrote and init script, by doing following tasks:

  • Delete previous 3 containers Debian, Ubuntu et Alpine
  • Create an RSA key allowing Ansible connection through SSH
  • Starting 3 instances Docker Debian, Docker Ubuntu, and Docker Alpine
  • Ssh key injection in each Docker instance using ssh-copy-id (password will be ask: toor)
  • Ansible hosts inventory creation

To connect using ssh, get ip address from host file, then:

ssh -i id_rsa root@ip_address

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages