[NEW] Ansible Hosts file and Ansible.cfg file - FREE PREVIEW

In this lesson I will be creating a custom Ansible hosts file and a custom ansible.cfg file

anisble.cfg

[defaults]

# Use local hosts file in folder 

inventory =./hosts

# Don't worry about RSA Fingerprints 

host_key_checking = False

# Do not create .retry files on job failure 

retry_files_enabled = False 

# Do not gather facts

gathering = explicit 

# Change Python Interpreter for Ansible 2.8 onwards

interpreter_python = /usr/bin/python3


Ansible Hosts File

## Ansible Hosts File 

[CSR-Routers]

CSR-1 ansible_host=192.168.1.220

CSR-2 ansible_host=192.168.1.221

CSR-3 ansible_host=192.168.1.222


Complete and Continue