This repo is part of my blog post on geting started with Ansible and becoming a DevOps.
- Docker Ubuntu
Plus a Docker Ansible, to have and avoid installing Ansible on your laptop.
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