IT 자동화 도구로 서버 관리, 애플리케이션 배포, 시스템 구성 등을 간소화하고 자동화하는데 사용됨. Python으로 작성된 Ansible은 에이전트가 따로 필요없고, ssh를 통해 원격 시스템과 통신. 이를 통해 다수의 서버를 관리할 수 있음

ansible 또는 ansible-inventory와 같은 Ansible 명령을 실행# example.ini
mail.example.com
[webservers]
foo.example.com
bar.example.com
[dbservers]
one.example.com
two.example.com
three.example.com---
- name: Install and start Apache web server
hosts: webservers
become: true
tasks:
- name: Install apache2
apt:
name: apache2
state: present
- name: Start apache2 service
service:
name: apache2
state: started- name: "copy file"
copy:
src: "file-a"
dest: "/home/file-a"