Ansible Playbook Optimizing

$ cat ansible.cfg [defaults] hostfile = ./hosts host_key_checking = False timeout = 5 log_path = ./logfile.txt forks = 50 gathering = smart [ssh_connection] pipelining = True The above file shows the content of ansible.cfg file. I have added the following to make my playbook run … “Ansible Playbook Optimizing”

Read More

Ansible – Cisco Config Implementation

The goal of this article is to explain configuration implementation on Cisco IOS after the config has been generated as shown in Ansible Config Generator III: config-implementation.yml — – hosts: switch   gather_facts: true   connection: local     tasks:   – name: OBTAIN LOGIN … “Ansible – Cisco Config Implementation”

Read More

Ansible – Config Generator – II

For the first part of this series, check this – 1st part of this series. — – hosts: local connection: local gather_facts: no   tasks:   – name: GET DATA     include_vars: ./host_vars/file.yml   – name: GENERATE CONFIG     template:       src: ./SVI.j2       dest: … “Ansible – Config Generator – II”

Read More

Ansible – Config Generator – I

Before proceeding, make sure to install “netaddr” as this is required for “ipaddr()” used in the Jinja2 configuration template. pip install netaddr aggr.yml is the playbook that will be utilized for generating L3 SVI configuration: — – hosts: local connection: local gather_facts: no tasks: – … “Ansible – Config Generator – I”

Read More

Ansible – Encrypting Password

Basic Ansible automation playbook provides a method for accessing Cisco IOS devices and executing “show commands”. The “secrets.yml” file contains the username and password in plain-text. ansible-vault can be utilized to encrypt the “secrets.yml” file. Encrypt a file using ansible-vault: ansible-vault encrypt secrets.yml View the … “Ansible – Encrypting Password”

Read More