Skip to Main Content
Mastering Python Networking
book

Mastering Python Networking

by Eric Chou
June 2017
Intermediate to advanced content levelIntermediate to advanced
446 pages
10h 10m
English
Packt Publishing
Content preview from Mastering Python Networking

The inventory file

We do not need Ansible if we have no remote target to manage, correct? Everything starts from the fact that we need to manage some task on a remote host. The way we specify the potential remote target is with a host file. We can either have this file specifying the remote host either in /etc/ansible/hosts or use the -i option to specify the location of the file. Personally, I prefer to have this file in the same directory where my playbook is.

Technically, this file can be named anything as long as it is in a valid format. However, you can potentially save yourself and your colleagues some headaches in the future by following this convention.

The inventory file is a simple, plain text INI-style file that states your target. ...

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 Python Networking - Second Edition

Mastering Python Networking - Second Edition

Eric Chou
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington

Publisher Resources

ISBN: 9781784397005Supplemental Content