How to Install Ansible | How to Setup Master & Worker Server
Burhan ????
Focused on building secure network and cloud infrastructure with expertise in Docker, Kubernetes, Ansible, Terraform, and CI/CD pipelines
Ansible
Ansible is an open-source automation tool used for configuration management, application deployment, and task automation. It is widely used due to its simplicity, flexibility, and power.
Ease of Use
Use Cases for Ansible
2 Create Instance
Launch Instance & Use This command first
server1 ansible_host= Instance IP Here
server2 ansible_host= Instance IP Here
#all is keywork which is show's all server or group sab ke sab
[all:vars]
ansible_python_insterpreter=/usr/bin/python3
ansible_ssh_private_key=/home/ubuntu/keys/ansible_masters.pem
[server1:vars]
ansible_user=ubuntu
[server2:vars]
ansible_user=ec2-user
Modules Meaning : Value already set
When you facing any error on line number then you can use this commands
After the save hosts file need to run this command : ansible-inventory --list
Now ping your both servers after changes on hosts file : ansible servers - m ping
add file on : ansible_ssh_private_key_file=/home - - - -
This is all for the basic configuration. In the next post we will discussed about the playbook, what is the playbook or how we create it, what is its configuration etc.
#AnsibleAutomation #ServerManagement #CloudComputing #InfrastructureAsCode #DevOpsPractices
AWS and Azure Cloud | AWS Certified Solutions Architect | DevOps Expert | Kubernetes | CI/CD | Terraform | Ansible | Azure DevOps | Python | EKS, AKS, OpenShift | EU Blue Card Holder
2 个月Wow nice!!
Software Engineer | Temenos TripleA Plus | WealthSuite | DevOps & Cloud Enthusiast
2 个月Well done Burhan ????!
Cloud Engineer | Network Engineer | IT Support | Oracle & Google Cloud | DevOps Learner
2 个月Gazab ??. Keep it up Burhan ????
Bridging Development and Operations | Passionate About Scaling & Orchestrating Production Applications with DevOps
2 个月Well done Burhan ???? ??
Helping Students and Professionals build their Careers | Experience in DevOps | Python | AWS | PySpark | SQL | NoSQL | 1000+ Learners placed
2 个月Ye hui naa baaat