Oste Profile picture
May 31 16 tweets 5 min read
Day 1 of learning #Ansible Automation.

Run my first simple simple playbook for updating two VM's.

I intend to log my progress/journey along with useful resources in this thread: 👇🧵
But first, what is #Ansible?

Simply put, its a an open source DevOps tool/IT automation engine that automates provisioning, configuration management, application deployment, orchestration, and many other IT processes.
Off course there exists other alternatives to #Ansible, including:
✅ Rudder
✅ SaltStack
✅ Puppet Enterprise
✅ Chef
✅ CFEngine
✅ Gitlab CI
✅ Jenkins
But after consulting a few buddies, i got to learn that its pretty easy to get started.
My Setup:

Lets discuss a few terminologies:

✅The Ansible control node is the machine we’ll use to connect to and control the Ansible hosts over SSH.

✅An Ansible host is any machine that your Ansible control node is configured to automate.
To install ansible on your Control node, simply run:

sudo apt install ansible sshpass -y
Once ansible is installed, you need to define the hosts in an Inventory file.

Simply put, its a file that contains information about the servers Ansible controls, and its typically located at /etc/ansible/hosts.

See how you can define : servers, ssh username & Password
Earlier, i mentioned i created my first playbook.

This is a file containing a series of tasks to be executed on a remote server.

Consider the following playbook, it would come in handy when i have a fresh ubuntu install & need to install a couple of necessary tools.
In the screenshot above, under the 'play recap' , you can see the status change for each server to 2. Meaning we installed both tools.

If we run the same playbook again, we can see the 'change' status indicated "0", meaning the tools have already been installed.
Oh , Playbooks are written in YAML format.😁
RESOURCES:

ansible.com
Ansible DevOps Guide by @_0xBEN_ 🔥

notes.benheater.com/books/it-notes…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Oste

Oste Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(