Ansible is an open-source Continuous Deployment, Configuration Management, & Orchestration. This tool aims to provide large productivity gains to a wide variety of automation challenges and is powerful enough to automate complex multi-tier IT application environments. Playbooks in Ansible are written in YAML format. It is a human-readable data serialization language that is commonly used for configuration files. It can also be used in many applications where data is being stored.
Ansible is an open-source Continuous Deployment, Configuration Management, & Orchestration. This tool aims to provide large productivity gains to a wide variety of automation challenges and is powerful enough to automate complex multi-tier IT application environments. Playbooks in Ansible are written in YAML format. It is a human-readable data serialization language that is commonly used for configuration files. It can also be used in many applications where data is being stored.
Structure
- playbook.yml - hosts - roles/ nginx/ # Role name tasks/ # Task directory main.yml nginx.yml handlers/ files/ # 'copy' will refer to this nginx.conf templates/ # 'template' will refer to this ssh.conf.j2 meta/ # Role dependencies here vars/ main.yml defaults/ main.yml
Connection
ssh-copy-id -i root@10.7.0.1 # Copy SSH Key ansible –m ping <host> # Check a specific host ansible -m ping all # Check all hosts