Spec-Zone.ru › Ansible 2.10

Network Getting Started

Ansible collections support a wide range of vendors, device types, and actions, so you can manage your entire network with a single automation tool. With Ansible, you can:

  • Automate repetitive tasks to speed routine network changes and free up your time for more strategic work
  • Leverage the same simple, powerful, and agentless automation tool for network tasks that operations and development use
  • Separate the data model (in a playbook or role) from the execution layer (via Ansible modules) to manage heterogeneous network devices
  • Benefit from community and vendor-generated sample playbooks and roles to help accelerate network automation projects
  • Communicate securely with network hardware over SSH or HTTPS

Who should use this guide?

This guide is intended for network engineers using Ansible for the first time. If you understand networks but have never used Ansible, work through the guide from start to finish.

This guide is also useful for experienced Ansible users automating network tasks for the first time. You can use Ansible commands, playbooks and modules to configure hubs, switches, routers, bridges and other network devices. But network modules are different from Linux/Unix and Windows modules, and you must understand some network-specific concepts to succeed. If you understand Ansible but have never automated a network task, start with the second section.

This guide introduces basic Ansible concepts and guides you through your first Ansible commands, playbooks and inventory entries.

Getting Started Guide

  • Basic Concepts
    • Control node
    • Managed nodes
    • Inventory
    • Collections
    • Modules
    • Tasks
    • Playbooks
  • How Network Automation is Different
    • Execution on the control node
    • Multiple communication protocols
    • Collections organized by network platform
    • Privilege Escalation: enable mode, become, and authorize
  • Run Your First Command and Playbook
    • Prerequisites
    • Install Ansible
    • Establish a manual connection to a managed node
    • Run your first network Ansible command
    • Create and run your first network Ansible Playbook
    • Gathering facts from network devices
  • Build Your Inventory
    • Basic inventory
    • Add variables to the inventory
    • Group variables within inventory
    • Variable syntax
    • Group inventory by platform
    • Verifying the inventory
    • Protecting sensitive variables with ansible-vault
  • Use Ansible network roles
    • Understanding roles
  • Beyond the basics
    • A typical Ansible filetree
    • Tracking changes to inventory and playbooks: source control with git
  • Working with network connection options
    • Setting timeout options
  • Resources and next steps
    • Documents
    • Events (on video and in person)
    • GitHub repos
    • IRC and Slack

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/network/getting_started/index.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API