Skip to content

tinhtq/ansible

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published