getting started with ansible - introduction - red hat...describe an it infrastructure ansible...

17
Getting Started with Ansible - Introduction Automation for everyone Götz Rieger Senior Solution Architect Roland Wolters Senior Solution Architect

Upload: others

Post on 20-May-2020

53 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

Getting Started with Ansible - Introduction

Automation for everyone

Götz RiegerSenior Solution Architect

Roland WoltersSenior Solution Architect

Page 2: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

WHAT IS ANSIBLE?

Page 3: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

WHAT IS ANSIBLE?It’s…

● a simple automation language to describe an IT infrastructure Ansible Playbooks.

● It’s an automation engine that runsAnsible Playbooks.

● Ansible Tower - an enterprise framework for controlling, securing and managing your Ansible automation with a UI and restful API.

Page 4: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

SIMPLE - POWERFUL - AGENTLESS

Page 5: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

SIMPLE POWERFUL AGENTLESS

Human readable automation

No special coding skills needed

Tasks executed in order

Get productive quickly

App deployment

Configuration management

Workflow orchestration

Orchestrate the app lifecycle

Agentless architecture

Uses OpenSSH & WinRM

No agents to exploit or update

More efficient & more secure

Page 6: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

HOW ANSIBLE WORKS

ANSIBLE’S AUTOMATION ENGINE

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

CMDB

USERS

INVENTORY

HOSTS

NETWORKING

MODULES

API

PLUGINS

APPS & SERVICES

Page 7: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

PLAYBOOK EXAMPLE---

- name: install and start apache hosts: all

vars:

http_port: 80

max_clients: 200

tasks:

- name: install httpd yum: pkg=httpd state=latest

- name: write the apache config file template: src=/srv/httpd.j2 dest=/etc/httpd.conf

- name: start httpd service: name=httpd state=running

Page 8: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

PLAYBOOK EXAMPLE---

- name: install and start apache

hosts: all vars:

http_port: 80

max_clients: 200

tasks:

- name: install httpd

yum: pkg=httpd state=latest

- name: write the apache config file

template: src=/srv/httpd.j2 dest=/etc/httpd.conf

- name: start httpd

service: name=httpd state=running

Page 9: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

PLAYBOOK EXAMPLE---

- name: install and start apache

hosts: all

vars: http_port: 80 max_clients: 200

tasks:

- name: install httpd

yum: pkg=httpd state=latest

- name: write the apache config file

template: src=/srv/httpd.j2 dest=/etc/httpd.conf

- name: start httpd

service: name=httpd state=running

Page 10: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

PLAYBOOK EXAMPLE---

- name: install and start apache

hosts: all

vars:

http_port: 80

max_clients: 200

tasks: - name: install httpd

yum: pkg=httpd state=latest - name: write the apache config file

template: src=/srv/httpd.j2 dest=/etc/httpd.conf - name: start httpd

service: name=httpd state=running

Page 11: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

SIMPLE - POWERFUL - AGENTLESS

… WHAT IS MISSING?

Page 12: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

CENTRAL INTEGRATION ACCESS

Simple, powerful API

Uses REST for quick adoption

No special agents or lib needed

Integrate with everything

Central place for everyone

Overview of present and past

Schedule jobs

Have one common view

Teams and users enable RBAC

Deposit credentials securely

Assign access to unprivileged

Separate access and execution

Page 13: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

ANSIBLE TOWER

• WHAT IS ANSIBLE TOWER?

Ansible tower is an enterprise framework for controlling, securing and managing your Ansible automation – with a UI and restful API.

• Role-based access control• Push-button deployment for

non-privileged users.• Central logging, with connections to

external frameworks.• Workflow manager to stitch multiple

playbooks together.

Page 14: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

PLATFORM OVERVIEW

USE CASES

USERS

ANSIBLEPYTHON CODEBASE

OPEN SOURCE MODULE LIBRARY

PLUGINS

CLOUD

AWS, GOOGLE CLOUD, AZURE …

INFRASTRUCTURE

LINUX,WINDOWS,UNIX …

NETWORKS

ARISTA, CISCO, JUNIPER …

CONTAINERS

DOCKER, LXC …

SERVICES

DATABASES, LOGGING,SOURCE CONTROL

TRANSPORTSSH, WINRM, ETC.

AUTOMATEYOUR

ENTERPRISE

ADMINS

ANSIBLE CLI & CI SYSTEMS

ANSIBLE PLAYBOOKS

….

ANSIBLETOWER

SIMPLE USER INTERFACE TOWER API

ROLE-BASEDACCESS CONTROL

KNOWLEDGE& VISIBILITY

SCHEDULED &CENTRALIZED JOBS

CONFIGURATION

MANAGEMENT

APP DEPLOYMENT

CONTINUOUSDELIVERY

SECURITY &COMPLIANCE

ORCHESTRATIONPROVISIONING

Page 15: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

ANSIBLE: THE LANGUAGE OF DEVOPS

Ansible is the only automation engine that can automate the entire application lifecycle

and continuous delivery pipeline.

Ansible is the first automation language that can be read and written across IT.

From development… …to production.

ANSIBLE PLAYBOOK

DEV/TEST Q/A OPERATIONS MANAGEMENT OUTSOURCERS

COMMUNICATION IS THE KEY TO DEVOPS.

Page 16: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an

THANK YOUplus.google.com/+RedHat

linkedin.com/company/red-hat

youtube.com/user/RedHatVideos

facebook.com/redhatinc

twitter.com/RedHatNews

Page 17: Getting Started with Ansible - Introduction - Red Hat...describe an IT infrastructure Ansible Playbooks. It’s an automation engine that runs Ansible Playbooks. Ansible Tower - an