
Ansible
Ansible is an open-source automation tool used for configuration management, application deployment, and task automation. It simplifies IT operations by using YAML-based playbooks to define infrastructure as code, making it easy to manage servers, containers, networks, and cloud environments without requiring agents.
My Starter Ansilbe Collection
Ansible Execution
sudo ansible-playbook -i inventory.ini firewall_open_mysql.yml
Special Note: Change .yml from "all" to localhost to execute on localhost:
sudo ansible-playbook firewall_open_mysql.yml
[servers]
192.168.254.200 ansible_ssh_user=ansible_svc
192.168.254.201 ansible_ssh_user=ansible_svc
192.168.254.202 ansible_ssh_user=ansible_svc
192.168.254.100 ansible_ssh_user=ansible_svc
192.168.254.101 ansible_ssh_user=ansible_svc
192.168.254.102 ansible_ssh_user=ansible_svc
192.168.254.20 ansible_ssh_user=ansible_svc
192.168.254.21 ansible_ssh_user=ansible_svc
192.168.254.22 ansible_ssh_user=ansible_svc
.ini Single List of Systems
[servers]
192.168.254.200 ansible_ssh_user=ansible_svc
192.168.254.201 ansible_ssh_user=ansible_svc
192.168.254.202 ansible_ssh_user=ansible_svc
[workstations]
192.168.254.100 ansible_ssh_user=ansible_svc
192.168.254.101 ansible_ssh_user=ansible_svc
192.168.254.102 ansible_ssh_user=ansible_svc
[webservers]
192.168.254.20 ansible_ssh_user=ansible_svc
192.168.254.21 ansible_ssh_user=ansible_svc
192.168.254.22 ansible_ssh_user=ansible_svc
.ini Groups of Systems
INI files are used to list and group servers efficiently. They organize server details into sections, making it easy to categorize servers by type or environment, such as production, staging, and development. This structure simplifies configuration management and enhances readability.
