This repository contains the support material for the workshop "Introduction to Ansible".
The slide deck can be found here.
- A Linux, MacOSX o Windows host with 64-bits architecture and support for virtualization.
Please take on account that you may need to install and use dos2unix
to convert some scripts inside the virtual machines (e.g. copy_public_key.sh
). Read this page for more info on the subject.
-
Install VirtualBox and Vagrant
-
Install Git
-
Clone this repo:
git clone https://github.com/lekum/introduction-to-ansible.git
-
Inside the folder
vagrant/servers', run
vagrant up` -
Inside the folder
vagrant/controller
, runvagrant up
and when it finishes, runvagrant ssh
to enter the controller machine -
Inside the controller machine, run
./copy_public_key.sh
and sayyes
to the questions and usevagrant
as password -
If you run
ansible all -m ping
you should get an output like this:10.0.15.22 | success >> { "changed": false, "ping": "pong" } 10.0.15.21 | success >> { "changed": false, "ping": "pong" } 10.0.15.23 | success >> { "changed": false, "ping": "pong" }