© Moshe Zadka 2019
Moshe ZadkaDevOps in Pythonhttps://doi.org/10.1007/978-1-4842-4433-3_11

11. Ansible

Moshe Zadka1 
(1)
Belmont, CA, USA
 

Like Salt, Ansible is another configuration management system. However, Ansible does not have a custom agent: it always works with SSH. Unlike the way Salt works with SSH, where it spins up an ad hoc minion and sends it commands, Ansible calculates the commands on the server and sends simple commands and files through the SSH connection.

By default, Ansible will try to use the local SSH command as the control machine. If the local command is unsuitable for any reason, Ansible will fall back to using the Paramiko library.

11.1 Ansible Basics

Ansible can be installed using pip install ansible in a virtual environment. ...

Get DevOps in Python: Infrastructure as Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.