Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 588 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 588 Bytes

Auto Configuration with Ansible - Demo Basic

Hands-on lab with Ansible

Diagram

alt text

From Ansible Host Computer connect to 3 VMs to automatically config DB with Mysql Web with Apache

Run

Install Ansible

 sudo apt update
 sudo apt install ansible

Test Ansible is working

ansible all --key-file ~/.ssh/ansible -i inventory -m ping

Run automatically config

ansible-playbook sample.yml

Using --ask-become-pass to using sudo privillege

Note

sample-before-role.yml is a file I had written before I wrote specific roles