- Ansible is fun, you saw in last few days how easy it is.
Let's make it fun now, by using a video explanation for Ansible.
The Blog covers Ansible for DevOps engineers.
Aim: To enhance the DevOps journey by delving into Ansible, a configuration management tool.
Functionality: Ansible manages configurations across numerous servers and automates tasks.
Learning approach: Offers enriched learning experiences, highlighting the use of Ansible.
Installation: Guides users to install Ansible on a master node to connect and manage multiple servers.
What is Ansible
Ansible is basically a configuration management tool, meaning if you install Ansible on a server, you can manage the configuration of many servers from that server. Let's say you want Docker to be installed on 10 servers at a specific time, Docker images should be available, and they should run automatically. How will you do this? You'll do it with Ansible.
Let's say you have a node, right, it's your master node, and you have many hosts, okay? You have many hosts or many servers. Now, on this server, on this server, on all three servers, you have to install Docker, then check the disk space of these three services, check the time, and many other things. So what will you do? You'll install Ansible on this master node, and what will Ansible do? It will connect all these servers via SSH. How? By connecting to all these servers in this way. Once this connection is established, the connection is established. Then in Ansible's language, you can control all these servers as easily as dancing on your fingers.
The point is, you have to install Ansible on this master node. Whenever you install Ansible, you don't install all these notes on every server. Friends, you just install Ansible on the master node, and for all these nodes' IP addresses, it's just for the Ansible master node inventory.
Ansible inventory means you can view your entire inventory, listing all servers along with their details.
YAML
ansible-inventory --list
Ansible Setup with Servers
- You can refer this blog to setup your Ansible server Day 55: Understanding Configuration Management with Ansible
ssh tutorial
- Again you can refer the above same blog Day 55: Understanding Configuration Management with Ansible
Creating ansible Inventory and commands
- Refer the same blog Day 55: Understanding Configuration Management with Ansible
Happy Learning
Thanks For Reading! :)
-DevOpsParthu💝💥