Ansible Essentials: 5 Days Hands On
Ansible Essentials: 5 Days Hands On
5 days Hands on
Ansible is growing in popularity for good reasons. It’s easy to understand, far simpler than Python, and
extremely powerful. While Python can be used to do just about anything, Ansible is used to bring
structure and consistency to system deployments, implementations, and changes. Students tempted to
write a complex Python script to do a networking automation task will discover that problem is already
solved by an Ansible module. Lots of unnecessary Python scripts can be eliminated by using Ansible
whenever possible. Ansible can be used for both network and server administrators alike.
Lecture
● Ansible definition
● Exploring modules
● Building a task
● Places to define Ansible vars
● hosts aka "Inventory"
● Creating a A play
● Looking at the “handler”
● Running a playbook
● Introduction to YAML
● Requirements for connecting to remote hosts
2. Installation
● ansible.cfg
● Ansible Inventory
● roles
5. YAML
● YAML Gotchas
● YAML Dictionary
● YAML list
● YAML list of dictionaries
● YAML Alternate format
● Relationship to JSON
Labs:
1. SSH client and server configs
2. RSA key gen
3. Methods for Installing Ansible
4. Ansible Host Inventory
5. Ad-Hoc Modules and Gather Facts
6. Elevated Ad-Hoc Commands
7. Running your first Playbook
8. Ad-Hoc Raw Commands
9. Debug, Loops, and YAML Lists
10. When Conditionals, YAML Dictionaries, and Jinja
11. ansible.cfg setup
12. Building Playbooks - Bootstrap with raw, group and user Modules
13. Mapping YAML Vars Files in Playbooks
14. Ansible Modules - shell
15. Ansible Module - copy
16. Ansible Module - apt
17. Ansible Module - yum
18. Ansible Module - get_url
19. Ansible Module - file
20. Ansible Module - git
21. Ansible Module - template
22. Playbook Tags
23. Ansible Module - lineinfile and replace
24. Manually Launch an OpenStack Instance
25. OpenStack, Ansible and Shade
26. YAML, JSON, Dynamic, and Cloud Inventories
27. Configuring a Web Service with Ansible
28. Ansible Handlers
29. Ansible Error Handling
30. pre_tasks, roles, tasks, post_tasks, and handlers
31. Exploring Switches with Ansible
32. network_cli Playbook
33. Backup and Save Config - Cisco, Juniper, Arista, and Many More!
34. Network Playbooks and Vendor Specific Modules
35. Simplifying Network Playbooks with Agnostic Modules
36. Reading Variables into Playbooks
37. Ansible script module
38. Ansible Lookup Plugin
39. Ansible Playbook Output Logging
40. Ansible Keywords - register and when
41. Ansible Galaxy
42. Ansible Vault
43. Ansible Tower
44. (Optional Case Study) Ansible for Palo Alto PanOS and Panorama
45. (Optional Case Study) Ansible for Juniper Junos Core and Role Modules
46. (Optional Case Study) Ansible for VMWare NSX Networking