Skip to Content
Practical Ansible 2
book

Practical Ansible 2

by Daniel Oh, James Freeman, Fabio Alessandro Locati
June 2020
Intermediate to advanced
410 pages
9h 52m
English
Packt Publishing
Content preview from Practical Ansible 2

Enabling network automation

Before you can use Ansible for network automation, you need to make sure you have everything you need.

Based on the kind of connection method we are going to use, we need different dependencies. As an example, we are going to use a Cisco IOS device with network_cli connectivity.

The only requirements for Ansible network automation to work are as follows:

  • Ansible 2.5+
  • Proper connectivity with the network device

First, we need to check the Ansible version:

  1. To ensure that you have a recent Ansible version, you can run the following command:
$ ansible --version

This will tell you the version of your Ansible installation.

  1. If it's 2.5 or better, you can issue the following command (with the appropriate options) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ansible - Third Edition

Mastering Ansible - Third Edition

James Freeman, Jesse Keating
Security Automation with Ansible 2

Security Automation with Ansible 2

Akash Mahajan, MADHU AKULA

Publisher Resources

ISBN: 9781789807462Supplemental Content