diff --git a/ReadMe.md b/ReadMe.md index 9ec3ecf1161fc15c98db81483e61e64b82a3f93a..7d1c3edd7194d570dde2cd9b14561de95bb52195 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1 +1,42 @@ -just documenting to play with Ansible +# Ansible Quick Overview + +--- + +### **What is Ansible?** +Ansible is an automation tool for configuring systems and deploying applications using YAML files. + +--- + +### **Core Concepts** + +- **Playbook**: A YAML file with tasks. + ```yaml + - hosts: all + tasks: + - name: Install nginx + apt: + name: nginx + state: present + ``` + +- **Inventory**: List of servers to manage. + ```ini + [webservers] + 192.168.1.10 + ``` + +- **Modules**: Actions like `apt`, `copy`, `service`. + +--- + +### **Key Commands** + +- **Run Playbook**: + ```bash + ansible-playbook playbook.yml + ``` + +- **Check if hosts are reachable**: + ```bash + ansible all -m ping + ``` \ No newline at end of file