OReilly.network.automation.with.Ansible Uploaded by syahri ardi
Books
Audiobooks
Magazines
A paper about network automation with Ansible
Save
Embed
Share
Print
News
Documents
Sheet Music
Starting Ansible_ Easy Guide Fo -
1
Download
Join
of 52
Taste Test Puppet Chef
Ansible Summary
Search document
napalm_install_config to push them and activate them as the new
running configurations on the devices. Even though every line isn’t reviewed in the example, you can still make out what is actually happening. The following playbook introduces new concepts such as the built-in variable inventory_hostname. These concepts are covered in Chapter 6. --- name: BUILD AND PUSH NETWORK CONFIGURATION FILES hosts: leaves connection: local gather_facts: no
tasks: - name: BUILD CONFIGS template: src=templates/leaf.j2 dest=configs/{{inventory_hostname }}.conf You're Reading a Preview - name: PUSH CONFIGS Unlock full access with a free trial. napalm_install_config: hostname={{ inventory_hostname }} Download With Free Trial username={{ un }} password={{ pwd }} dev_os={{ os }} config_file=configs/{{ inventory_hostname }}.conf commit_changes=1 replace_config=0
This two-step process is the simplest way to get started with network automation using Ansible. You simply template your configs, build Master yourconfig semester with Scribd files, and push them to the network device—otherwise Read Free Foron 30this Days Sign up to vote title as the BUILD and PUSH method. Useful Not useful & The New known York Times Special offer for students: Only $4.99/month.
Cancel anytime.
Another example like this is reviewed in much more
Home
Saved
Books
Audiobooks
Magazines
News
Documents
Sheet Music
Master your semester with Scribd & The New York Times Special offer for students: Only $4.99/month.