SlideShare a Scribd company logo
Leveraging the Ansible
APITyler Turk – DevOps Engineer at WP Engine
Who am I?
DevOps Engineer at WP Engine
Enjoys Operations, Development,
and long walks on the beach
Ansible API
Ansible API Use Cases
• Server Provisioning Automation
• Wrapping Ansible calls in scripts
• Gaining deeper understanding of the
Ansible internals
Best Examples – Ansible Code Itself!
Ansible Ansible Playbook
Breaking it Down – Ansible API
3 module parameters
• Module Name
• Module Path
• Module Arguments
Several Authentication Options
• Remote user / pass
• User / pass / options for su(do)
• Vault password
• Private Key
Breaking it Down – Ansible API
• Inventory / Pattern / Subset
• Timeout
• Forks
• Callbacks
• Transport method
• Check / Diff options
Breaking it Down – Ansible-Playbook API
Shares many of the same arguments
Includes new arguments:
• Playbook (obviously!)
• Callbacks for runner and playbook
• Stats
• Extra variables
• Tag logic (skip, only)
• Force / flush handlers
Inventory Management
• Need to define inventory
• Can define subset
• Easy to instantiate
Ansible Plugins
Types of plugins:
• Connection Type
• Lookup
• Vars
• Filter
• Callbacks
Callback Plugins – Ooo, interesting…
• Customize actions
• Aggregate/manipulate results
• Create historic logs and
dashboards
Examples!
Questions?
There are some “less good” ones…

More Related Content

PPTX
Introduction to Ansible - Jan 28 - Austin MeetUp
PPTX
Extending ansible
PDF
Open stack and_vagrant-os-meetup-2015
PPTX
Dev-Friendly Ops
PDF
High Performance Solution for PHP7
PPTX
A brief to PHP 7.3
PDF
Great Tools Heavily Used In Japan, You Don't Know.
PPTX
How to Supercharge your PHP Web API
Introduction to Ansible - Jan 28 - Austin MeetUp
Extending ansible
Open stack and_vagrant-os-meetup-2015
Dev-Friendly Ops
High Performance Solution for PHP7
A brief to PHP 7.3
Great Tools Heavily Used In Japan, You Don't Know.
How to Supercharge your PHP Web API

What's hot (20)

PPTX
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
PPTX
Day 2 - Intro to Rails
PDF
Ansible
PDF
Performance and Abstractions
PPTX
Configuration primer
PPTX
No Container: a Modern Java Stack with Bootique
PPTX
Day 9 - PostgreSQL Application Architecture
PPTX
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
PDF
Real World Elixir Deployment
PPTX
ZeroMQ at Oredev 2013
PPTX
goployer, 코드 기반의 배포 도구 - 송주영 (beNX) :: AWS Community Day 2020
PDF
03 ansible towerbestpractices-nicholas
PPTX
One to rule them all
PDF
PHP7 - The New Engine for old good train
PDF
CommandBox at CFCamp 2014
PDF
Apache Traffic Server Internals
PPTX
Actors Set the Stage for Project Orleans
KEY
Why ruby and rails
PDF
Ansible + WordPress
ODP
Using Ansible at Scale to Manage a Public Cloud
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
Day 2 - Intro to Rails
Ansible
Performance and Abstractions
Configuration primer
No Container: a Modern Java Stack with Bootique
Day 9 - PostgreSQL Application Architecture
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Real World Elixir Deployment
ZeroMQ at Oredev 2013
goployer, 코드 기반의 배포 도구 - 송주영 (beNX) :: AWS Community Day 2020
03 ansible towerbestpractices-nicholas
One to rule them all
PHP7 - The New Engine for old good train
CommandBox at CFCamp 2014
Apache Traffic Server Internals
Actors Set the Stage for Project Orleans
Why ruby and rails
Ansible + WordPress
Using Ansible at Scale to Manage a Public Cloud
Ad

Similar to Ansible API (20)

PDF
Aws Technical Day 2015 - Amazon API Gateway
PPTX
API Testing with Open Source Code and Cucumber
PPTX
Super simple introduction to REST-APIs (2nd version)
PDF
Emulators as an Emerging Best Practice for API providers
PPTX
Azure Resource Manager - Technical Primer
PPTX
Laravel ppt
PPTX
What-is-Laravel and introduciton to Laravel
PDF
Modern Functional Fluent CFML REST by Luis Majano
PPTX
What-is-Laravel-23-August-2017.pptx
PPTX
Ember - introduction
PPTX
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
PDF
Welcome to the Jungle: Pentesting AWS
PDF
Api security-testing
PPTX
Function_Overloading_in_CPP its uses and examples.
PPTX
API Docs with OpenAPI 3.0
PDF
Practices and tools for building better APIs
PDF
Practices and tools for building better API (JFall 2013)
PPTX
Hard Coding as a design approach
PDF
from ai.backend import python @ pycontw2018
PPTX
Azure API Management - why should I care?
Aws Technical Day 2015 - Amazon API Gateway
API Testing with Open Source Code and Cucumber
Super simple introduction to REST-APIs (2nd version)
Emulators as an Emerging Best Practice for API providers
Azure Resource Manager - Technical Primer
Laravel ppt
What-is-Laravel and introduciton to Laravel
Modern Functional Fluent CFML REST by Luis Majano
What-is-Laravel-23-August-2017.pptx
Ember - introduction
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
Welcome to the Jungle: Pentesting AWS
Api security-testing
Function_Overloading_in_CPP its uses and examples.
API Docs with OpenAPI 3.0
Practices and tools for building better APIs
Practices and tools for building better API (JFall 2013)
Hard Coding as a design approach
from ai.backend import python @ pycontw2018
Azure API Management - why should I care?
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Dropbox Q2 2025 Financial Results & Investor Presentation
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx
Modernizing your data center with Dell and AMD
Review of recent advances in non-invasive hemoglobin estimation
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Teaching material agriculture food technology
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?

Ansible API

  • 1. Leveraging the Ansible APITyler Turk – DevOps Engineer at WP Engine
  • 2. Who am I? DevOps Engineer at WP Engine Enjoys Operations, Development, and long walks on the beach
  • 4. Ansible API Use Cases • Server Provisioning Automation • Wrapping Ansible calls in scripts • Gaining deeper understanding of the Ansible internals
  • 5. Best Examples – Ansible Code Itself! Ansible Ansible Playbook
  • 6. Breaking it Down – Ansible API 3 module parameters • Module Name • Module Path • Module Arguments Several Authentication Options • Remote user / pass • User / pass / options for su(do) • Vault password • Private Key
  • 7. Breaking it Down – Ansible API • Inventory / Pattern / Subset • Timeout • Forks • Callbacks • Transport method • Check / Diff options
  • 8. Breaking it Down – Ansible-Playbook API Shares many of the same arguments Includes new arguments: • Playbook (obviously!) • Callbacks for runner and playbook • Stats • Extra variables • Tag logic (skip, only) • Force / flush handlers
  • 9. Inventory Management • Need to define inventory • Can define subset • Easy to instantiate
  • 10. Ansible Plugins Types of plugins: • Connection Type • Lookup • Vars • Filter • Callbacks
  • 11. Callback Plugins – Ooo, interesting… • Customize actions • Aggregate/manipulate results • Create historic logs and dashboards
  • 13. Questions? There are some “less good” ones…

Editor's Notes

  • #11: CONNECTION TYPE The connection type plugins allow you to add additional connection types. I’m not really sure what the use case would be unless you’re trying to support other operating systems. LOOKUP TYPE Lookup plugins allow access of data in Ansible from outside sources VARS TYPE Provide additional ways to get variables FILTER TYPE Provide additional filters on top of Jinja2 CALLBACKS TYPE Calling back to report data
  • #12: With callback plugins, you can have a little bit more power over your ansible runs and how your code tracks data. There are also some great examples online already. As silly as it may seem,