Ansible Essentials 5 days Hands on

Similar documents
Contents. Prerequisites 1. Linux 1. Installation 1. What is Ansible? 1. Basic Ansible Commands 1. Ansible Core Components 2. Plays and Playbooks 8

Study Guide. Expertise in Ansible Automation

Ansible and Firebird

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other

Ansible Hands-on Introduction

Infoblox and Ansible Integration

An introduction to ANSIBLE. Anand Buddhdev RIPE NCC

Ansible: Server and Network Device Automation

ansible-workshop Documentation

Ansible - Automation for Everyone!

Ansible at Scale. David Melamed Senior Research Engineer, CTO Office, CloudLock

Cloud and Devops - Time to Change!!! PRESENTED BY: Vijay

Introduction to Ansible

Dominating Your Systems Universe with Ansible Daniel Hanks Sr. System Administrator Adobe Systems Incorporated

Automate Patching for Oracle Database in your Private Cloud

Ansible. Go directly to project site 1 / 36

Introduction to CLI Automation with Ansible

We are ready to serve Latest IT Trends, Are you ready to learn?? New Batches Info

ABOUT INTRODUCTION ANSIBLE END Ansible Basics Oleg Fiksel Security CSPI GmbH OpenRheinRuhr 2015

Red Hat Ansible Workshop. Lai Kok Foong, Kelvin

IN DEPTH INTRODUCTION ARCHITECTURE, AGENTS, AND SECURITY

WHAT IS ANSIBLE AND HOW CAN IT HELP ME?

Ansible Tower Quick Install

Ansible in Operation. Bruce Becker: Coordinator, SAGrid

introducing Haid-und-Neu-Str. 18, Karlsruhe Germany

Infrastructure Configuration and Management with Ansible. Kaklamanos Georgios

Zero Touch Provisioning of NIOS on Openstack using Ansible

AUTOMATION ACROSS THE ENTERPRISE

Ansible in Depth WHITEPAPER. ansible.com

Ansible Bootcamp. Bruce Becker: Coordinator, Africa-Arabia ROC

Ansible Tower Quick Setup Guide

Getting Started with Ansible for Linux on z David Gross

Ansible Tower Quick Setup Guide

Henry Stamerjohann. Apfelwerk GmbH & Co. #macadmins

Be smart. Think open source.

Choosing an orchestration tool: Ansible and Salt. Ken Wilson Opengear. Copyright 2017 Opengear, Inc. 1

Ansible. For Oracle DBAs. Alexander Hofstetter Trivadis GmbH

OPEN SOURCING ANSIBLE

Harnessing your cluster with Ansible

How to avoid boring work - Automation for DBAs

Ansible Tower on the AWS Cloud

Ansible. Systems configuration doesn't have to be complicated. Jan-Piet

Ansible + Hadoop. Deploying Hortonworks Data Platform with Ansible. Michael Young Solutions Engineer February 23, 2017

AGENTLESS ARCHITECTURE

Managing BSD Systems with Ansible

Housekeeping. Timing Breaks Takeaways

Getting started with Ansible and Oracle

GIVING POWER TO THE PEOPLE With General Mills

Zabbix Ansible Module. Patrik Uytterhoeven

Automation: Making the Best Choice for Your Organization

Unix for Software Developers

Ansible Tower Quick Install

DevOPS, Ansible and Automation for the DBA. Tech Experience 18, Amsersfoot 7 th / 8 th June 2018

Splunk and Ansible. Joining forces to increase implementation power. Rodrigo Santos Silva Head of Professional Services, Tempest Security Intelligence

Automate DBA Tasks With Ansible

Ansible F5 Workshop +

Database Operations at Groupon using Ansible. Mani Subramanian Sr. Manager Global Database Services Groupon

Rapid Deployment of Bare-Metal and In-Container HPC Clusters Using OpenHPC playbooks

MULTI CLOUD AS CODE WITH ANSIBLE & TOWER

Behind the scenes of a FOSS-powered HPC cluster at UCLouvain

Infrastructure As Code. Managing BSD systems with Ansible. Overview. Introduction to Ansible

Button Push Deployments With Integrated Red Hat Open Management

Sanjay Shitole, Principle Solutions Engineer

MARCO MALAVOLTI

Automation and configuration management across hybrid clouds with CloudForms, Satellite 6, Ansible Tower

Get Automating with Infoblox DDI IPAM and Ansible

Ansible. -- Make it so

Ask an Expert: Ansible Network Automation

The recommended way for deploying a OSS DC/OS cluster on GCE is using Terraform.

Modern Provisioning and CI/CD with Terraform, Terratest & Jenkins. Duncan Hutty

ansible-eos Documentation

Deploying MySQL HA. with Ansible and Vagrant (101) Daniel Guzman Burgos (Percona) Robert Barabas (Percona)

AUTOMATION FOR EVERYONE Accelerating your journey to the Hybrid Cloud with Ansible Tower

ANSIBLE TOWER OVERVIEW AND ROADMAP. Bill Nottingham Senior Principal Product Manager

Malaysian Open Source Conference (The) Multi Facets of the Open Source Tools. Muhammad Najmi Ahmad Zabidi

AUTOMATING THE ENTERPRISE WITH ANSIBLE. Dustin Boyd Solutions Architect September 12, 2017

Enhancing Secrets Management in Ansible with CyberArk Application Identity Manager

Ansible Tower Upgrade and Migration

Introduction to Ansible. yench

Ansible Tower Installation and Reference Guide

Splunk ConfiguraAon Management and Deployment with Ansible

RED HAT TECH EXCHANGE HOUSE RULES

Getting Started with Ansible - Introduction

This tutorial is prepared for the beginners to help them understand the basics of Ansible. It can also help as a guide to engineers.

INTRODUCTION CONTENTS BEGINNER S GUIDE: CONTROL WITH RED HAT ANSIBLE TOWER

OpenStack Summit Austin

SELF-SERVICE IT WITH ANSIBLE TOWER & MICROSOFT AZURE. Chris Houseknecht Dave Johnson. June #redhat #rhsummit

Ansible and Ansible Tower by Red Hat

(Almost) Instant monitoring

Ansible Tower 3.0.x Upgrade and Migration

goodplay Documentation

Infrastructure at your Service. Setup Oracle Infrastructure with Vagrant & Ansible

Ansible Tower Installation and Reference Guide

Managing 15,000 network devices with Ansible. Landon Holley & James Mighion May 8, 2018

J, K, L. Each command, 31. Fully qualified domain name (FQDN), 116

mastering ansible A622DFD780311BCF8921DE033F8C7977 Mastering Ansible 1 / 6

Ansible Tower Upgrade and Migration

Ansible Tower Installation and Reference Guide

Ansible for DevOps. Server and configuration management for humans. Jeff Geerling ISBN Jeff Geerling

Terraform & Infrastructure as Code. Ben Higginbottom (kind of a big deal) ((seriously - I ve helped hijack a spacecraft))

Transcription:

Ansible Essentials 5 days Hands on Ansible is growing in popularity for good reason, it is both 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 some 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 Day 1 1. Ansible Introduction Ansible definition A module A task Ansible vars Ansible tasks hosts aka "Inventory" A play handlers The Ansible playbook passwordless sudo and RSA access Public Key Encryption as Privacy Public Key Encryption as Authentication Exploring the lab environment 2. Installation Configuration requirements on the control machine Python requirements on the host Using ansible raw to install Python Day 2 3. Ansible config file and directory structure ansible.cfg Ansible Inventory roles 3. Ansible Static Inventory Defining Hosts and Groups Host and Group variables Groups of Groups Default Groups 4. Ansible Ad hoc commands Ad hoc command syntax Parallel Shell commands Managing packages copyright Alta3 Research Inc 1

Managing users and groups Gathering facts ad hoc cheat sheet 5. Ansible config file and directory structure ansible.cfg Host Inventory and ansible_vars roles 6. YAML YAML Gotchas YAML Dictionary YAML list YAML list of dictionaries YAML Alternate format Day 3 7. Writing a Simple Playbook Elements of a well written playbook A well-written Ansible play Using include files for tasks A well-written ansible variable file A well-written ansible inventory file 8. Key Modules you need to know Understanding modules documentation Copy apt / yum / pip command / shell git get_url debug Manage L3 interfaces on network devices Manage Layer-2 interface on network devices Manage VLANs on network devices OpenVswitch NFV Manage Interface on network devices 9. Ansible templates What is Jinja2? jinja variables jinja filters jinja tests How to use ansible template Review of the ansible template documentation Day 4 10. Conditional and Looping Tasks Variables and Loops Using Complex Variables in Loops Variables and Templates Using variables in conditions Blocks Prompts Getting variables from the system Setting variables in playbooks registered variables Getting variables from the command line copyright Alta3 Research Inc 2

Where is the best source to derive variables values? 11. Dynamic Inventory Management What is Dynamic Inventory? A review of static Inventory Practices Using JSON as an Inventory Source AWS EC2 Example OpenStack Example 12. OpenStack Configuration Enough OpenStack to Survive Understanding the OpenStack client What is shade? clouds.yaml Installing shade Using shade os_network os_subnet os_router os_server os_server_action os_security_group os_security_group_rule 13. napalm-ansible Network Automation Transactions What is NAPALM? How NAPALM works napalm installation Load/Replace configuration Network Driver Connecting to the Device Replacing the Configuration Rollback Changes Disconnecting NAPALM Context Manager Extending NAPALM Example What is napalm-ansible? napalm-ansible Installation napalm_ping napalm_get_facts napalm_install_config napalm_validate 14. Networktocode ntc-ansible What is ntc-ansible TextFSM Installation ntc Modules Example Day 5 15. Roles Why we need Ansible Roles Role Directory Structure Using Roles Role default variables Converting a Playbook to a Role 16. Playbook Best Practices copyright Alta3 Research Inc 3

Directory Layout Use Dynamic Inventory With Clouds How to Differentiate Staging vs Production Group And Host Variables Top Level Playbooks Are Separated By Server Type If you must use shell stay idempotent! 7 More Best Practices 17. Ansible Tower / AWX Essentials What is Ansible Tower and AWX Labs: 1. SSH client and server configs 2. RSA key gen 3. Install ansible 4. Inventory and Ad-Hoc commands 5. Ad-Hoc modules and gather facts 6. Ad-Hoc elevated 7. Day one challenge lab #1 8. Day one challenge lab #2 9. Mastering the yaml list 10. Install host dependencies ad-hoc raw 11. Mastering the yaml dictionary 12. ansible.cfg setup 13. Writing a simple multi-step all-in-one playbook 14. Write a playbook with separate vars file 15. Ansible shell Module 16. Ansible copy module 17. Ansible apt module 18. Ansible yum module 19. Ansible get-url module 20. Ansible file module 21. Ansible git module 22. Ansible template Module 23. Mastering Ansible module documentation 24. Manual Launch of an OpenStack Instance 25. Launch an OpenStack Instance with Ansible and shade 26. Dynamic Inventory 27. Configuring a Web Service with Ansible 28. Using Ansible handlers 29. Ansible error handling 30. Install GNS3 31. Setup GNS3 networking 32. Configure the switches 33. Network Device PLaybook 34. Network get_config and archive playbook 35. Writing a custom network device playbook 36. Napalm first steps 37. Napalm validation 38. Napalm changes, validation, and rollback 39. Napalm basic python script 40. Napalm Challenge 41. Reading variables into playbooks from files 42. Using Ansible to call python script 43. Installing a custom Ansible module 44. Using Ansible to fetch running config 45. Using Ansible to merge config 46. Using Ansible to validate a configuration 47. Creating custom Ansible roles 48. Ansible galaxy and roles copyright Alta3 Research Inc 4

49. Ansible release process - writing a complex playbook 50. Ansible Tower Install 51. Tracking with Ansible logs 52. Ansible Vault - encrypting sensitive data copyright Alta3 Research Inc 5