SlideShare a Scribd company logo
1 of 18
ANSIBLE
A self-driving car is just a car
with AUTOMATION
Photo via Volvo
3
Ansible Engine
SIMPLE POWERFUL AGENTLESS
App deployment
Configuration management
Workflow orchestration
Network automation
Orchestrate the app lifecycle
Human readable automation
No special coding skills needed
Tasks executed in order
Usable by every team
Supported
Get productive quickly
Agentless architecture
Uses OpenSSH & WinRM
No agents to exploit or update
Get started immediately
More efficient & more secure
What can I do with Ansible?
4
Orchestration
Do this...
Firewalls
Configuration
Management
Application
Deployment
Provisioning
Continuous
Delivery
Security and
Compliance
On these...
Load Balancers Applications Containers Clouds
Servers Infrastructure Storage And more...Network Devices
Automate the deployment and management of your entire IT footprint.
5
● modules
● inventory
● ad-hoc commands
● playbooks
● transports
● variables
● facts
● vaults
Ansible Engine
Concepts
6
Modules are pieces of code that enable a specific functionality
Fully documented on docs.ansible.com
Vendors are increasingly developing and shipping modules for their products
You can develop your own modules
Example: service
Ansible Engine
Modules
ansible all -m service -a “name=httpd
state=started enabled=yes”
7
CLOUD
AWS
Azure
CenturyLink
CloudScale
Digital Ocean
Docker
Google
Linode
OpenStack
Rackspace
And more...
WINDOWS
ACLs
Files
Commands
Packages
IIS
Regedits
Shell
Shares
Services
DSC
Users
Domains
And more...
VIRT AND
CONTAINER
Docker
VMware
RHV
OpenStack
OpenShift
Atomic
CloudStack
And more...
NETWORK
Arista
A10
Cumulus
Big Switch
Cisco
Cumulus
Dell
F5
Juniper
Palo Alto
OpenSwitch
And more...
NOTIFY
HipChat
IRC
Jabber
Email
RocketChat
Sendgrid
Slack
Twilio
And more...
ANSIBLE SHIPS WITH OVER 1500 MODULES
8
Inventory is the set of nodes to be managed by Ansible. They are stored in a ini formatted file. Examples:
Ansible Engine
Inventory
[webservers]
web1.example.com
server1.example.com
[dbservers]
db1.example.com
server1.example.com
[wildcardservers]
*.example.com
db%.example.com
[rangeservers]
w[01:50].example.com
db-[a:f].example.com
[example:children]
webservers
dbservers
[specialservers]
srv.example.com:5143
9
General format:
Guess what this does:
Ansible Engine
Ad-Hoc commands
ansible <server pattern> -m <module> -a
“<arguments>”
ansible all -m yum -a “name=* state=latest”
10
Ansible Engine
Playbooks
# This playbook will install and start/enable Apache
---
- hosts: webservers
vars:
http_port: 80
max_clients: 200
remote_user: root
tasks:
- name: ensure apache is at the latest version
yum: name=httpd state=latest
- name: ensure apache is running (and enable it at boot)
service: name=httpd state=started enabled=yes
11
Ansible Engine
Playbooks
# This playbook will install and start/enable Apache
---
- hosts: webservers
vars:
http_port: 80
max_clients: 200
remote_user: root
tasks:
- name: ensure apache is at the latest version
yum: name=httpd state=latest
- name: ensure apache is running (and enable it at boot)
service: name=httpd state=started enabled=yes
YAML
12
Ansible is agentless, so how can it execute stuff on the target servers?
Transport types:
● OpenSSH (port 22) on Linux/Unix/...
○ Clients need to have Python installed
● WinRM (port 5986 for https or port 5985 for http) on Windows:
○ Clients need to have Powershell installed
● Many other transport types: local/paramiko ssh/network_cli/netconf/...
Sudo and runas constructs are fully supported
Transports are plugins, so are extendable
Ansible has a push architecture
Ansible Engine
Transports
13
Ansible Engine
Variables (or vars)
---
- hosts: webservers
vars:
http_port: 80
max_clients: 200
tasks:
- name: ...
---
alpha: ['a', 'b', 'c']
numbers: [1, 2, 3, 4]
---
users:
alice:
name: Alice Appleworth
telephone: 123-456-7890
bob:
name: Bob Bananarama
telephone: 987-654-3210
simple vars in playbook array vars in separate file dict vars
14
● = pieces of information regarding the remote system
● E.g.: IP addresses, Operating System, Ethernet devices, mac address, ...
● Implemented using the “setup” module
● Implicitly runs at the start of a playbook, so you can use them in your code
Ansible Engine
Facts
ansible webserver -m setup
"ansible_dns": {
"nameservers": [
"192.168.100.1",
"10.1.1.12"
],
}
15
Vaults are encrypted files protected with a password (file)
Any file can be a vault: playbooks, inventory, var files, even binaries
Unlock during playbook run giving password
Password can be asked or delivered using a file or script
Vaulted data is NEVER shown in logs
Ansible Engine
Vaults
ansible-playbook site.yml --vault-password-file ~/.vault_pass.py
Let’s pray to the demo gods…
DEMO TIME
7
Thank you!

More Related Content

What's hot

Automating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and AnsibleAutomating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and AnsibleBrian Hogan
 
1 - demo lab using vmware workstation
1 - demo lab using vmware workstation1 - demo lab using vmware workstation
1 - demo lab using vmware workstationMangat R K
 
CS1520 Intro and Xampp installation
CS1520 Intro and Xampp installationCS1520 Intro and Xampp installation
CS1520 Intro and Xampp installationSalim Malakouti
 
Moonlight Special
Moonlight SpecialMoonlight Special
Moonlight SpecialAtsushi Eno
 
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der Microservices
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der MicroservicesDevDay 2016: Adam Bien - Eine sprachneutrale Essenz der Microservices
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der MicroservicesDevDay Dresden
 
Open stack and_vagrant-os-meetup-2015
Open stack and_vagrant-os-meetup-2015Open stack and_vagrant-os-meetup-2015
Open stack and_vagrant-os-meetup-2015yfauser
 
Creating Perl modules with Dist::Zilla
Creating Perl modules with Dist::ZillaCreating Perl modules with Dist::Zilla
Creating Perl modules with Dist::ZillaMark Gardner
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xamppJin Castor
 
Unbundling the Future Web Runtime
Unbundling the Future Web RuntimeUnbundling the Future Web Runtime
Unbundling the Future Web RuntimeGuy Bedford
 
Create a custom AutoNumber source
Create a custom AutoNumber sourceCreate a custom AutoNumber source
Create a custom AutoNumber sourcePLM Mechanic .
 
Using Aws As A Game Server (AWS UG Bandung)
Using Aws As A Game Server (AWS UG Bandung)Using Aws As A Game Server (AWS UG Bandung)
Using Aws As A Game Server (AWS UG Bandung)Aswin Juari
 
Next-Generation Best Practices for VMware and Storage
Next-Generation Best Practices for VMware and StorageNext-Generation Best Practices for VMware and Storage
Next-Generation Best Practices for VMware and StorageScott Lowe
 
virtual hosting and configuration
virtual hosting and configurationvirtual hosting and configuration
virtual hosting and configurationHAMZA AHMED
 
OGDC2012 Lua In Game_Mr. Van, Nguyen Ngoc
OGDC2012 Lua In Game_Mr. Van, Nguyen NgocOGDC2012 Lua In Game_Mr. Van, Nguyen Ngoc
OGDC2012 Lua In Game_Mr. Van, Nguyen NgocBuff Nguyen
 
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.Oliver Kriska
 

What's hot (19)

Xampp Workshop
Xampp WorkshopXampp Workshop
Xampp Workshop
 
Automating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and AnsibleAutomating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and Ansible
 
1 - demo lab using vmware workstation
1 - demo lab using vmware workstation1 - demo lab using vmware workstation
1 - demo lab using vmware workstation
 
CS1520 Intro and Xampp installation
CS1520 Intro and Xampp installationCS1520 Intro and Xampp installation
CS1520 Intro and Xampp installation
 
Moonlight Special
Moonlight SpecialMoonlight Special
Moonlight Special
 
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der Microservices
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der MicroservicesDevDay 2016: Adam Bien - Eine sprachneutrale Essenz der Microservices
DevDay 2016: Adam Bien - Eine sprachneutrale Essenz der Microservices
 
Open stack and_vagrant-os-meetup-2015
Open stack and_vagrant-os-meetup-2015Open stack and_vagrant-os-meetup-2015
Open stack and_vagrant-os-meetup-2015
 
Creating Perl modules with Dist::Zilla
Creating Perl modules with Dist::ZillaCreating Perl modules with Dist::Zilla
Creating Perl modules with Dist::Zilla
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
 
Unbundling the Future Web Runtime
Unbundling the Future Web RuntimeUnbundling the Future Web Runtime
Unbundling the Future Web Runtime
 
Create a custom AutoNumber source
Create a custom AutoNumber sourceCreate a custom AutoNumber source
Create a custom AutoNumber source
 
Using Aws As A Game Server (AWS UG Bandung)
Using Aws As A Game Server (AWS UG Bandung)Using Aws As A Game Server (AWS UG Bandung)
Using Aws As A Game Server (AWS UG Bandung)
 
Next-Generation Best Practices for VMware and Storage
Next-Generation Best Practices for VMware and StorageNext-Generation Best Practices for VMware and Storage
Next-Generation Best Practices for VMware and Storage
 
virtual hosting and configuration
virtual hosting and configurationvirtual hosting and configuration
virtual hosting and configuration
 
unga - boosting opensim
unga - boosting opensimunga - boosting opensim
unga - boosting opensim
 
gogul
gogulgogul
gogul
 
OGDC2012 Lua In Game_Mr. Van, Nguyen Ngoc
OGDC2012 Lua In Game_Mr. Van, Nguyen NgocOGDC2012 Lua In Game_Mr. Van, Nguyen Ngoc
OGDC2012 Lua In Game_Mr. Van, Nguyen Ngoc
 
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.
WebUp Feb 2017 - How (not) to get lost in bigger Ruby on Rails project.
 

Similar to Openbar 5 - Leuven - Automating everything with Ansible - Piros

Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them AllTim Fairweather
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 
Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deckJuraj Hantak
 
06 network automationwithansible
06 network automationwithansible06 network automationwithansible
06 network automationwithansibleKhairul Zebua
 
Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19dvillaco
 
Devops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShiftDevops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShiftYaniv cohen
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricJitendra Bafna
 
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015Alex S
 
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-AsibleTommy Lee
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Arun prasath
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdfNigussMehari4
 
CoreOS and cloud provider integration: simple cloud-init example at Exoscale
CoreOS and cloud provider integration: simple cloud-init example at ExoscaleCoreOS and cloud provider integration: simple cloud-init example at Exoscale
CoreOS and cloud provider integration: simple cloud-init example at ExoscaleAntoine COETSIER
 
Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017Kyle Bassett
 
Containers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatContainers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatAmazon Web Services
 
Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Michael Dobe, Ph.D.
 

Similar to Openbar 5 - Leuven - Automating everything with Ansible - Piros (20)

ansible_rhel.pdf
ansible_rhel.pdfansible_rhel.pdf
ansible_rhel.pdf
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them All
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deck
 
06 network automationwithansible
06 network automationwithansible06 network automationwithansible
06 network automationwithansible
 
NodeJS
NodeJSNodeJS
NodeJS
 
Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19
 
Devops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShiftDevops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShift
 
ansible why ?
ansible why ?ansible why ?
ansible why ?
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
 
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015
 
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdf
 
Ansible - Hands on Training
Ansible - Hands on TrainingAnsible - Hands on Training
Ansible - Hands on Training
 
CoreOS and cloud provider integration: simple cloud-init example at Exoscale
CoreOS and cloud provider integration: simple cloud-init example at ExoscaleCoreOS and cloud provider integration: simple cloud-init example at Exoscale
CoreOS and cloud provider integration: simple cloud-init example at Exoscale
 
Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017
 
Containers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatContainers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red Hat
 
Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)
 
Automation day red hat ansible
   Automation day red hat ansible    Automation day red hat ansible
Automation day red hat ansible
 

More from Openbar

Openbar Kontich Online // The Competences of the future: how we applied AI to...
Openbar Kontich Online // The Competences of the future: how we applied AI to...Openbar Kontich Online // The Competences of the future: how we applied AI to...
Openbar Kontich Online // The Competences of the future: how we applied AI to...Openbar
 
Openbar Kontich Online // The Legal reality of VR and AR - Kris Seyen
Openbar Kontich Online // The Legal reality of VR and AR - Kris SeyenOpenbar Kontich Online // The Legal reality of VR and AR - Kris Seyen
Openbar Kontich Online // The Legal reality of VR and AR - Kris SeyenOpenbar
 
Openbar Leuven Online // Launching in Digital Space - Seb De Roover
Openbar Leuven Online // Launching in Digital Space - Seb De RooverOpenbar Leuven Online // Launching in Digital Space - Seb De Roover
Openbar Leuven Online // Launching in Digital Space - Seb De RooverOpenbar
 
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...Openbar
 
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...Openbar
 
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...Openbar
 
Openbar Kontich // The key to successful entrepreneurship
Openbar Kontich // The key to successful entrepreneurshipOpenbar Kontich // The key to successful entrepreneurship
Openbar Kontich // The key to successful entrepreneurshipOpenbar
 
Openbar Leuven // Science fiction and AI
Openbar Leuven // Science fiction and AIOpenbar Leuven // Science fiction and AI
Openbar Leuven // Science fiction and AIOpenbar
 
Openbar Leuven // Ethics in technology - Laurens Somers
Openbar Leuven // Ethics in technology - Laurens Somers Openbar Leuven // Ethics in technology - Laurens Somers
Openbar Leuven // Ethics in technology - Laurens Somers Openbar
 
Openbar Kontich // How to create intelligent & personal conversational AI - W...
Openbar Kontich // How to create intelligent & personal conversational AI - W...Openbar Kontich // How to create intelligent & personal conversational AI - W...
Openbar Kontich // How to create intelligent & personal conversational AI - W...Openbar
 
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van Beeck
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van BeeckOpenbar Kontich // Unified e-commerce with Netsuite - Roger Van Beeck
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van BeeckOpenbar
 
Openbar Leuven // Edge-Computing: On-device AI // Nick Destrycker
Openbar Leuven // Edge-Computing: On-device AI // Nick DestryckerOpenbar Leuven // Edge-Computing: On-device AI // Nick Destrycker
Openbar Leuven // Edge-Computing: On-device AI // Nick DestryckerOpenbar
 
Openbar Leuven // What's up with augmented reality // Bert Waltniel
Openbar Leuven // What's up with augmented reality // Bert WaltnielOpenbar Leuven // What's up with augmented reality // Bert Waltniel
Openbar Leuven // What's up with augmented reality // Bert WaltnielOpenbar
 
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...Openbar
 
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram ThysOpenbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram ThysOpenbar
 
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...Openbar Leuven \\ Using API Management to improve developers productivity \\ ...
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...Openbar
 
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...Openbar
 
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...Openbar
 
Openbar Leuven // Safety first... in the Cloud by Koen Jacobs
Openbar Leuven // Safety first... in the Cloud by Koen JacobsOpenbar Leuven // Safety first... in the Cloud by Koen Jacobs
Openbar Leuven // Safety first... in the Cloud by Koen JacobsOpenbar
 
Openbar Leuven // Less is more. Working with less data in NLP by Yves Peirsman
Openbar Leuven // Less is more. Working with less data in NLP by Yves PeirsmanOpenbar Leuven // Less is more. Working with less data in NLP by Yves Peirsman
Openbar Leuven // Less is more. Working with less data in NLP by Yves PeirsmanOpenbar
 

More from Openbar (20)

Openbar Kontich Online // The Competences of the future: how we applied AI to...
Openbar Kontich Online // The Competences of the future: how we applied AI to...Openbar Kontich Online // The Competences of the future: how we applied AI to...
Openbar Kontich Online // The Competences of the future: how we applied AI to...
 
Openbar Kontich Online // The Legal reality of VR and AR - Kris Seyen
Openbar Kontich Online // The Legal reality of VR and AR - Kris SeyenOpenbar Kontich Online // The Legal reality of VR and AR - Kris Seyen
Openbar Kontich Online // The Legal reality of VR and AR - Kris Seyen
 
Openbar Leuven Online // Launching in Digital Space - Seb De Roover
Openbar Leuven Online // Launching in Digital Space - Seb De RooverOpenbar Leuven Online // Launching in Digital Space - Seb De Roover
Openbar Leuven Online // Launching in Digital Space - Seb De Roover
 
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...
Openbar Leuven Online // How to Build and maintain your Agile Data Hub - Jona...
 
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...
Openbar Leuven // Omnicannel chatbots in Retail - Sam Hendrickx en Michiel Va...
 
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...
Openbar Leuven // Top 5 focus areas in cyber security linked to you digital t...
 
Openbar Kontich // The key to successful entrepreneurship
Openbar Kontich // The key to successful entrepreneurshipOpenbar Kontich // The key to successful entrepreneurship
Openbar Kontich // The key to successful entrepreneurship
 
Openbar Leuven // Science fiction and AI
Openbar Leuven // Science fiction and AIOpenbar Leuven // Science fiction and AI
Openbar Leuven // Science fiction and AI
 
Openbar Leuven // Ethics in technology - Laurens Somers
Openbar Leuven // Ethics in technology - Laurens Somers Openbar Leuven // Ethics in technology - Laurens Somers
Openbar Leuven // Ethics in technology - Laurens Somers
 
Openbar Kontich // How to create intelligent & personal conversational AI - W...
Openbar Kontich // How to create intelligent & personal conversational AI - W...Openbar Kontich // How to create intelligent & personal conversational AI - W...
Openbar Kontich // How to create intelligent & personal conversational AI - W...
 
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van Beeck
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van BeeckOpenbar Kontich // Unified e-commerce with Netsuite - Roger Van Beeck
Openbar Kontich // Unified e-commerce with Netsuite - Roger Van Beeck
 
Openbar Leuven // Edge-Computing: On-device AI // Nick Destrycker
Openbar Leuven // Edge-Computing: On-device AI // Nick DestryckerOpenbar Leuven // Edge-Computing: On-device AI // Nick Destrycker
Openbar Leuven // Edge-Computing: On-device AI // Nick Destrycker
 
Openbar Leuven // What's up with augmented reality // Bert Waltniel
Openbar Leuven // What's up with augmented reality // Bert WaltnielOpenbar Leuven // What's up with augmented reality // Bert Waltniel
Openbar Leuven // What's up with augmented reality // Bert Waltniel
 
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
 
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram ThysOpenbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
 
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...Openbar Leuven \\ Using API Management to improve developers productivity \\ ...
Openbar Leuven \\ Using API Management to improve developers productivity \\ ...
 
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...
Openbar Kontich // Is your AI plotting to kill you? Why AI and Machine Learni...
 
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...
Openbar Kontich // Serverless - A view from the business side by Stef Ceyssen...
 
Openbar Leuven // Safety first... in the Cloud by Koen Jacobs
Openbar Leuven // Safety first... in the Cloud by Koen JacobsOpenbar Leuven // Safety first... in the Cloud by Koen Jacobs
Openbar Leuven // Safety first... in the Cloud by Koen Jacobs
 
Openbar Leuven // Less is more. Working with less data in NLP by Yves Peirsman
Openbar Leuven // Less is more. Working with less data in NLP by Yves PeirsmanOpenbar Leuven // Less is more. Working with less data in NLP by Yves Peirsman
Openbar Leuven // Less is more. Working with less data in NLP by Yves Peirsman
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Openbar 5 - Leuven - Automating everything with Ansible - Piros

  • 2. A self-driving car is just a car with AUTOMATION Photo via Volvo
  • 3. 3 Ansible Engine SIMPLE POWERFUL AGENTLESS App deployment Configuration management Workflow orchestration Network automation Orchestrate the app lifecycle Human readable automation No special coding skills needed Tasks executed in order Usable by every team Supported Get productive quickly Agentless architecture Uses OpenSSH & WinRM No agents to exploit or update Get started immediately More efficient & more secure
  • 4. What can I do with Ansible? 4 Orchestration Do this... Firewalls Configuration Management Application Deployment Provisioning Continuous Delivery Security and Compliance On these... Load Balancers Applications Containers Clouds Servers Infrastructure Storage And more...Network Devices Automate the deployment and management of your entire IT footprint.
  • 5. 5 ● modules ● inventory ● ad-hoc commands ● playbooks ● transports ● variables ● facts ● vaults Ansible Engine Concepts
  • 6. 6 Modules are pieces of code that enable a specific functionality Fully documented on docs.ansible.com Vendors are increasingly developing and shipping modules for their products You can develop your own modules Example: service Ansible Engine Modules ansible all -m service -a “name=httpd state=started enabled=yes”
  • 7. 7 CLOUD AWS Azure CenturyLink CloudScale Digital Ocean Docker Google Linode OpenStack Rackspace And more... WINDOWS ACLs Files Commands Packages IIS Regedits Shell Shares Services DSC Users Domains And more... VIRT AND CONTAINER Docker VMware RHV OpenStack OpenShift Atomic CloudStack And more... NETWORK Arista A10 Cumulus Big Switch Cisco Cumulus Dell F5 Juniper Palo Alto OpenSwitch And more... NOTIFY HipChat IRC Jabber Email RocketChat Sendgrid Slack Twilio And more... ANSIBLE SHIPS WITH OVER 1500 MODULES
  • 8. 8 Inventory is the set of nodes to be managed by Ansible. They are stored in a ini formatted file. Examples: Ansible Engine Inventory [webservers] web1.example.com server1.example.com [dbservers] db1.example.com server1.example.com [wildcardservers] *.example.com db%.example.com [rangeservers] w[01:50].example.com db-[a:f].example.com [example:children] webservers dbservers [specialservers] srv.example.com:5143
  • 9. 9 General format: Guess what this does: Ansible Engine Ad-Hoc commands ansible <server pattern> -m <module> -a “<arguments>” ansible all -m yum -a “name=* state=latest”
  • 10. 10 Ansible Engine Playbooks # This playbook will install and start/enable Apache --- - hosts: webservers vars: http_port: 80 max_clients: 200 remote_user: root tasks: - name: ensure apache is at the latest version yum: name=httpd state=latest - name: ensure apache is running (and enable it at boot) service: name=httpd state=started enabled=yes
  • 11. 11 Ansible Engine Playbooks # This playbook will install and start/enable Apache --- - hosts: webservers vars: http_port: 80 max_clients: 200 remote_user: root tasks: - name: ensure apache is at the latest version yum: name=httpd state=latest - name: ensure apache is running (and enable it at boot) service: name=httpd state=started enabled=yes YAML
  • 12. 12 Ansible is agentless, so how can it execute stuff on the target servers? Transport types: ● OpenSSH (port 22) on Linux/Unix/... ○ Clients need to have Python installed ● WinRM (port 5986 for https or port 5985 for http) on Windows: ○ Clients need to have Powershell installed ● Many other transport types: local/paramiko ssh/network_cli/netconf/... Sudo and runas constructs are fully supported Transports are plugins, so are extendable Ansible has a push architecture Ansible Engine Transports
  • 13. 13 Ansible Engine Variables (or vars) --- - hosts: webservers vars: http_port: 80 max_clients: 200 tasks: - name: ... --- alpha: ['a', 'b', 'c'] numbers: [1, 2, 3, 4] --- users: alice: name: Alice Appleworth telephone: 123-456-7890 bob: name: Bob Bananarama telephone: 987-654-3210 simple vars in playbook array vars in separate file dict vars
  • 14. 14 ● = pieces of information regarding the remote system ● E.g.: IP addresses, Operating System, Ethernet devices, mac address, ... ● Implemented using the “setup” module ● Implicitly runs at the start of a playbook, so you can use them in your code Ansible Engine Facts ansible webserver -m setup "ansible_dns": { "nameservers": [ "192.168.100.1", "10.1.1.12" ], }
  • 15. 15 Vaults are encrypted files protected with a password (file) Any file can be a vault: playbooks, inventory, var files, even binaries Unlock during playbook run giving password Password can be asked or delivered using a file or script Vaulted data is NEVER shown in logs Ansible Engine Vaults ansible-playbook site.yml --vault-password-file ~/.vault_pass.py
  • 16. Let’s pray to the demo gods… DEMO TIME
  • 17. 7