© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. ZadkaDevOps in Pythonhttps://doi.org/10.1007/978-1-4842-7996-0_11

11. Ansible

Moshe Zadka1  
(1)
Belmont, CA, USA
 

Like Puppet or Salt, Ansible is a configuration management system. Ansible does not have a custom agent. It usually works with SSH, though it also supports other modes, like Docker or local-based actions.

When using SSH, Ansible calculates the commands locally. It then sends simple commands and files through the SSH connection.

By default, Ansible tries to use the local SSH command as the control machine. If the local command is unsuitable, Ansible falls back to using the Paramiko library.

11.1 Ansible Basics

Ansible can be installed using pip install ...

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.