SlideShare a Scribd company logo
Ansible Automation - Enterprise
Use Cases
Anthony Lin
Cloud Automation Specialist,
SEATH, Red Hat
2
Automation happens when one person meets
a problem they never want to solve again
3
FOR I.T. ORGANIZATIONS, THE RISE IS INEVITABLE
TOOLS
CHANGE
COMPLEXITY
EXPECTATIONS
4
AUTOMATION MAKES THE RISE MANAGEABLE
TOOLS CHANGE COMPLEXITY EXPECTATIONS
5
ACCELERATE INTEGRATE COLLABORATE
6
WE’RE NOT JUST SOLVING
PROBLEMS TODAY
IT OPS
7
BUT EMPOWERING YOUR
TEAMS FOR THE FUTURE
IT OPS DEVOPS SECURITY
INFRASTRUCTURE NETWORK
8
ITSM
Provisioning
Infra- Server
- Install OS
- Harden OS
- Storage
- Network
Infra- Middleware
- Install Database
- Install IIS
- Install Java
- Harden
- Middleware
Config Management
Server Configuration
Setting
- Changes (Infra)
- System (e.g. OS)
- Network
- Storage
- Database
Apps Server Config
Changes
- Middleware
- Database
Patch Management
- Verify Patches
- Apply Patch
- Status Verification
- Health Check
- Backup for Security
& Network Devices
- VLAN Creation
- Network Status
Security
&
Governance
Network Admin
Planned Activities
- Policy
Enforcement
- Hardening
Unplanned
Activities
- Audits
- Urgent
Vulnerability
Patch
Daily Activities
- Health Check
- Rights
Management
User Requests
Applications
Application Performance Management
Manual
Manual
9
ITSM
Provisioning
Infra- Server
- Install OS
- Harden OS
- Storage
- Network
Infra- Middleware
- Install Database
- Install IIS
- Install Java
- Harden
- Middleware
Config Management
Server Configuration
Setting
- Changes (Infra)
- System (e.g. OS)
- Network
- Storage
- Database
Apps Server Config
Changes
- Middleware
- Database
Patch Management
- Verify Patches
- Apply Patch
- Status Verification
- Health Check
- Backup for Security
& Network Devices
- VLAN Creation
- Network Status
Security
&
Governance
Network Admin
Planned Activities
- Policy
Enforcement
- Hardening
Unplanned
Activities
- Audits
- Urgent
Vulnerability
Patch
Daily Activities
- Health Check
- Rights
Management
User Requests
Application Performance Management
API
API
Provisioning Config Management Patch Management Network Admin
Applications
10
Ansible Automation
SIMPLE AGENTLESS EXTENSIBLE
11
12
CLOUD VIRT &
CONTAINER
WINDOWS NETWORK DEVOPS MONITORING
ANSIBLE AUTOMATES TECHNOLOGIES YOU USE
More than 1,200 Integrations
AWS
Azure
CenturyLink
Digital Ocean
Google
OpenStack
Rackspace
+more
Docker
VMware
RHV
OpenStack
OpenShift
+more
ACLs
Files
Packages
IIS
Regedits
Shares
Services
Configs
Users
Domains
+more
Arista
A10
Cumulus
Bigswitch
Cisco
Cumulus
Dell
F5
Juniper
Palo Alto
OpenSwitch
+more
Jira
GitHub
Vagrant
Jenkins
Bamboo
Atlassian
Subversion
Slack
Hipchat
+more
Dynatrace
Airbrake
BigPanda
Datadog
LogicMonitor
Nagios
New Relic
PagerDuty
Sensu
StackDriver
Zabbix
+more
STORAGE
NetApp
Red Hat Storage
Infinidat
+more
13
● The AWX Project -- AWX for short -- is an open source community
project, sponsored by Red Hat, that enables users to better control
their Ansible project use in IT environments
● AWX is the upstream project from which the Red Hat Ansible
Tower offering is ultimately derived
● AWX provides a web-based user interface, REST API, and task
engine built on top of Ansible
● AWX is designed to be a frequently released, fast-moving project
where all new development happens
● Ansible Tower is produced by taking selected releases of AWX,
hardening them for long-term supportability, and making them
available to customers as the Ansible Tower offering
● This is a tested and trusted method of software development for
Red Hat, which follows a similar model to Fedora and Red Hat
Enterprise Linux
INFRASTRUCTURE
ORCHESTRATION
15
Provision RHEL
VMs
Search for Available
IPs
Create DNS
Entry
Deploy Web App & Perform Validation
Test
Configure Load
Balancer
Configure Firewall Policies
REST
API
16
PATCH MANAGEMENT
18
WINDOWS SERVERS PATCHING
NETWORK AUTOMATION
20
DAILY HEALTH CHECKS
Scheduled by Ansible Tower to check for CRC errors, log errors and integrate with NOC/ITSM
CONFIGURATION MANAGEMENT
Infrastructure as code. Simplify firewall rules creation, VLAN creation, ACL rules or BGP routing using Ansible Tower
survey form
CONFIGURATION DRIFT
Scheduled task in Ansible Tower to check for drift by comparing against baseline configuration
PATCH MANAGEMENT
Use Ansible to deploy new firmware
SECURITY & COMPLIANCE CHECKS
Check for CVE and ensure security policies, such as disabling telnet, are applied
DYNAMIC DOCUMENTATION
Generate dynamic documentation and audit reports
COMMON NETWORKING USE CASES
21
- name: Update Palo Alto Firewall
panos_security_rule:
ip_address: "{{ firewall_node }}"
username: "{{ paloalto_username }}"
password: "{{ paloalto_password }}"
operation: "{{ firewall_operation }}"
rule_name: "{{ rule_name }}"
source_ip: "{{ srcipaddress }}"
source_user: 'any'
destination_ip: "{{ dstipaddress }}"
category: 'any'
application: "{{ application }}"
service: "{{ service }}"
hip_profiles: 'any'
action: "{{ firewall_action }}"
devicegroup: "{{ device_group }}"
PLAYBOOK EXAMPLE: PALO ALTO SECURITY RULE
22
---
- name: configure ios interface
hosts: ios01
tasks:
- name: collect device running-config
ios_command:
commands: show running-config interface GigabitEthernet0/2
provider: “{{ cli }}”
register: config
- name: administratively enable interface
ios_config:
lines: no shutdown
parents: interface GigabitEthernet0/2
provider: “{{ cli }}”
when: ‘”shutdown” in config.stdout[0]‘
- name: verify operational status
ios_command:
commands:
- show interfaces GigabitEthernet0/2
- show cdp neighbors GigabitEthernet0/2 detail
waitfor:
- result[0] contains ‘line protocol is up’
- result[1] contains ‘iosxr03’
- result[1] contains ’10.0.0.42’
provider: “{{ cli }}”
PLAYBOOK EXAMPLE: CISCO AUTOMATION
23
---
- hosts: all
connection: local
gather_facts: no
tasks:
- name: Set the system attributes
net_system:
hostname: "{{ net_hostname }}"
domain_name: "{{ site_domain_name }}"
name_servers: "{{ site_nameservers }}"
domain_search: "{{ site_domain_search }}"
[switches]
c3850-1 ansible_host=192.168.12.3 ansible_network_os=ios
c3560-1 ansible_host=192.168.12.2 ansible_network_os=ios
j2300-1 ansible_host=192.168.12.4 ansible_network_os=junos
[network:children]
switches
PLAYBOOK EXAMPLE: AUTOMATION ACROSS MULTIPLE
DEVICES
24
PLAYBOOK EXAMPLE: FIRMWARE CHECK
---
- hosts: cisco
connection: local
gather_facts: False
vars:
desired_version: "7.0(3)I7(1)"
tasks:
- name: gathering nxos facts
nxos_facts:
provider: "{{login_info}}"
- name: create HTML report
template:
src: report.j2
dest: /var/www/html/generated_report.html
delegate_to: localhost
run_once: true
25
PLAYBOOK EXAMPLE: CONFIG DRIFT
tasks:
- name: diff the running against the intended config
nxos_config:
diff_against: intended
provider: "{{ provider }}"
intended_config: "{{ lookup('file', 'backup.txt') }}"
# ansible-playbook intended_vs_running.yml --diff
PLAY [n9k] *******************************************************************
TASK [diff against the startup config] ***************************************
--- before
+++ after
@@ -50,8 +50,6 @@
no switchport
ip address 5.5.5.5/24
interface Ethernet1/6
- no switchport
- ip address 6.6.6.6/24
interface Ethernet1/7
interface Ethernet1/8
interface Ethernet1/9
26
CONVERTING CLI COMMANDS
27
PALO ALTO INTRUSION USE CASE
Threat Prevention logs
Malware and phishing logs
Correlated Event logs
System logs
Data filtering logs
Traps logs
… ...
10.5.3.1 Compromised
Dynamic Address Group
Policy Source Action
Quarantine
Dynamic
Address
Group
Deny All
1. Granular log filtering 2. Automated actions on the NGFW
HTTP/HTTPS
AUTO-TAG
3. Trigger API call to ITSM to alert NOC
about the threat
Brute Force Attack Alert Received
Host is 10.5.3.1
HTTP/HTTPS
4. Operator trigger Ansible
workflow to quarantine
10.5.3.0/24 subnet
28
CISCO AND FORTINET MANAGEMENT
29
GETTING STARTED
● E-Books (Part 1, Part 2)
ansible.com/ebooks
● Network Automation Workshop Road Show
ansible.com/workshops
● Events: Automates, Meetups, and best of all ...
ansible.com/automates
THANK YOU

More Related Content

What's hot (20)

PDF
Ansible Automation Platform.pdf
VuHoangAnh14
 
PDF
Kubernetes Docker Container Implementation Ppt PowerPoint Presentation Slide ...
SlideTeam
 
PDF
Kubernetes Introduction
Peng Xiao
 
PPTX
Kubernetes Introduction
Eric Gustafson
 
PPTX
Kubernetes PPT.pptx
ssuser0cc9131
 
PDF
OpenShift 4 installation
Robert Bohne
 
PDF
Ansible
Raul Leite
 
PPTX
Introduction to openshift
MamathaBusi
 
PPTX
Ansible presentation
Suresh Kumar
 
PDF
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
ODP
Kubernetes Architecture
Knoldus Inc.
 
PDF
Kubernetes - A Comprehensive Overview
Bob Killen
 
PDF
CD using ArgoCD(KnolX).pdf
Knoldus Inc.
 
PDF
네트워크 가상화 발표자료-SDN/NFV/Cloud
seungdols
 
PDF
Infrastructure as Code with Terraform and Ansible
DevOps Meetup Bern
 
PPTX
Autoscaling in Kubernetes
Hrishikesh Deodhar
 
PPTX
DevOps with Kubernetes
EastBanc Tachnologies
 
ODP
ansible why ?
Yashar Esmaildokht
 
PDF
DevOps Meetup ansible
sriram_rajan
 
PDF
Automation with ansible
Khizer Naeem
 
Ansible Automation Platform.pdf
VuHoangAnh14
 
Kubernetes Docker Container Implementation Ppt PowerPoint Presentation Slide ...
SlideTeam
 
Kubernetes Introduction
Peng Xiao
 
Kubernetes Introduction
Eric Gustafson
 
Kubernetes PPT.pptx
ssuser0cc9131
 
OpenShift 4 installation
Robert Bohne
 
Ansible
Raul Leite
 
Introduction to openshift
MamathaBusi
 
Ansible presentation
Suresh Kumar
 
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
Kubernetes Architecture
Knoldus Inc.
 
Kubernetes - A Comprehensive Overview
Bob Killen
 
CD using ArgoCD(KnolX).pdf
Knoldus Inc.
 
네트워크 가상화 발표자료-SDN/NFV/Cloud
seungdols
 
Infrastructure as Code with Terraform and Ansible
DevOps Meetup Bern
 
Autoscaling in Kubernetes
Hrishikesh Deodhar
 
DevOps with Kubernetes
EastBanc Tachnologies
 
ansible why ?
Yashar Esmaildokht
 
DevOps Meetup ansible
sriram_rajan
 
Automation with ansible
Khizer Naeem
 

Similar to Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin (20)

PDF
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
Tommy Lee
 
PDF
Automação do físico ao NetSecDevOps
Raul Leite
 
PPTX
F5 Meetup presentation automation 2017
Guy Brown
 
PDF
Automation day red hat ansible
Rodrigo Missiaggia
 
PDF
06 network automationwithansible
Khairul Zebua
 
PPT
.NET Core Apps: Design & Development
GlobalLogic Ukraine
 
PPTX
StrongLoop Overview
Shubhra Kar
 
PDF
Weave Your Microservices with Istio
All Things Open
 
PDF
All Things Open 2019 weave-services-istio
Lin Sun
 
PDF
Ato2019 weave-services-istio
Lin Sun
 
PPTX
Deploying windows containers with kubernetes
Ben Hall
 
DOCX
Kl 031.30 eng_class_setup_guide_1.2
Freddy Ortiz
 
PDF
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
Mario-Leander Reimer
 
PDF
citus™ iot ecosystem
DUONG Dinh Cuong
 
PPTX
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
Cihan Biyikoglu
 
PDF
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
OpenStack Korea Community
 
PDF
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld
 
PDF
ansible_rhel_90.pdf
ssuserd254491
 
PDF
Bare Metal to OpenStack with Razor and Chef
Matt Ray
 
PPT
Windows Server 2008 - Web and Application Hosting
Information Technology
 
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
Tommy Lee
 
Automação do físico ao NetSecDevOps
Raul Leite
 
F5 Meetup presentation automation 2017
Guy Brown
 
Automation day red hat ansible
Rodrigo Missiaggia
 
06 network automationwithansible
Khairul Zebua
 
.NET Core Apps: Design & Development
GlobalLogic Ukraine
 
StrongLoop Overview
Shubhra Kar
 
Weave Your Microservices with Istio
All Things Open
 
All Things Open 2019 weave-services-istio
Lin Sun
 
Ato2019 weave-services-istio
Lin Sun
 
Deploying windows containers with kubernetes
Ben Hall
 
Kl 031.30 eng_class_setup_guide_1.2
Freddy Ortiz
 
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
Mario-Leander Reimer
 
citus™ iot ecosystem
DUONG Dinh Cuong
 
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
Cihan Biyikoglu
 
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
OpenStack Korea Community
 
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld
 
ansible_rhel_90.pdf
ssuserd254491
 
Bare Metal to OpenStack with Razor and Chef
Matt Ray
 
Windows Server 2008 - Web and Application Hosting
Information Technology
 
Ad

More from Vietnam Open Infrastructure User Group (20)

PDF
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Vietnam Open Infrastructure User Group
 
PDF
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Vietnam Open Infrastructure User Group
 
PDF
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Vietnam Open Infrastructure User Group
 
PDF
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Vietnam Open Infrastructure User Group
 
PDF
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Vietnam Open Infrastructure User Group
 
PPTX
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Vietnam Open Infrastructure User Group
 
PDF
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Vietnam Open Infrastructure User Group
 
PPTX
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Vietnam Open Infrastructure User Group
 
PDF
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Vietnam Open Infrastructure User Group
 
PPTX
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Vietnam Open Infrastructure User Group
 
PDF
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Vietnam Open Infrastructure User Group
 
PPTX
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
Vietnam Open Infrastructure User Group
 
PDF
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Vietnam Open Infrastructure User Group
 
PDF
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Vietnam Open Infrastructure User Group
 
PPTX
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Vietnam Open Infrastructure User Group
 
PPTX
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Vietnam Open Infrastructure User Group
 
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
PDF
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Vietnam Open Infrastructure User Group
 
PDF
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Vietnam Open Infrastructure User Group
 
PDF
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Vietnam Open Infrastructure User Group
 
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Vietnam Open Infrastructure User Group
 
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Vietnam Open Infrastructure User Group
 
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Vietnam Open Infrastructure User Group
 
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Vietnam Open Infrastructure User Group
 
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Vietnam Open Infrastructure User Group
 
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Vietnam Open Infrastructure User Group
 
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Vietnam Open Infrastructure User Group
 
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Vietnam Open Infrastructure User Group
 
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Vietnam Open Infrastructure User Group
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Vietnam Open Infrastructure User Group
 
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Vietnam Open Infrastructure User Group
 
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
Vietnam Open Infrastructure User Group
 
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Vietnam Open Infrastructure User Group
 
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Vietnam Open Infrastructure User Group
 
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Vietnam Open Infrastructure User Group
 
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Vietnam Open Infrastructure User Group
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Vietnam Open Infrastructure User Group
 
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Vietnam Open Infrastructure User Group
 
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Vietnam Open Infrastructure User Group
 
Ad

Recently uploaded (20)

PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 

Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin

  • 1. Ansible Automation - Enterprise Use Cases Anthony Lin Cloud Automation Specialist, SEATH, Red Hat
  • 2. 2 Automation happens when one person meets a problem they never want to solve again
  • 3. 3 FOR I.T. ORGANIZATIONS, THE RISE IS INEVITABLE TOOLS CHANGE COMPLEXITY EXPECTATIONS
  • 4. 4 AUTOMATION MAKES THE RISE MANAGEABLE TOOLS CHANGE COMPLEXITY EXPECTATIONS
  • 6. 6 WE’RE NOT JUST SOLVING PROBLEMS TODAY IT OPS
  • 7. 7 BUT EMPOWERING YOUR TEAMS FOR THE FUTURE IT OPS DEVOPS SECURITY INFRASTRUCTURE NETWORK
  • 8. 8 ITSM Provisioning Infra- Server - Install OS - Harden OS - Storage - Network Infra- Middleware - Install Database - Install IIS - Install Java - Harden - Middleware Config Management Server Configuration Setting - Changes (Infra) - System (e.g. OS) - Network - Storage - Database Apps Server Config Changes - Middleware - Database Patch Management - Verify Patches - Apply Patch - Status Verification - Health Check - Backup for Security & Network Devices - VLAN Creation - Network Status Security & Governance Network Admin Planned Activities - Policy Enforcement - Hardening Unplanned Activities - Audits - Urgent Vulnerability Patch Daily Activities - Health Check - Rights Management User Requests Applications Application Performance Management Manual Manual
  • 9. 9 ITSM Provisioning Infra- Server - Install OS - Harden OS - Storage - Network Infra- Middleware - Install Database - Install IIS - Install Java - Harden - Middleware Config Management Server Configuration Setting - Changes (Infra) - System (e.g. OS) - Network - Storage - Database Apps Server Config Changes - Middleware - Database Patch Management - Verify Patches - Apply Patch - Status Verification - Health Check - Backup for Security & Network Devices - VLAN Creation - Network Status Security & Governance Network Admin Planned Activities - Policy Enforcement - Hardening Unplanned Activities - Audits - Urgent Vulnerability Patch Daily Activities - Health Check - Rights Management User Requests Application Performance Management API API Provisioning Config Management Patch Management Network Admin Applications
  • 11. 11
  • 12. 12 CLOUD VIRT & CONTAINER WINDOWS NETWORK DEVOPS MONITORING ANSIBLE AUTOMATES TECHNOLOGIES YOU USE More than 1,200 Integrations AWS Azure CenturyLink Digital Ocean Google OpenStack Rackspace +more Docker VMware RHV OpenStack OpenShift +more ACLs Files Packages IIS Regedits Shares Services Configs Users Domains +more Arista A10 Cumulus Bigswitch Cisco Cumulus Dell F5 Juniper Palo Alto OpenSwitch +more Jira GitHub Vagrant Jenkins Bamboo Atlassian Subversion Slack Hipchat +more Dynatrace Airbrake BigPanda Datadog LogicMonitor Nagios New Relic PagerDuty Sensu StackDriver Zabbix +more STORAGE NetApp Red Hat Storage Infinidat +more
  • 13. 13 ● The AWX Project -- AWX for short -- is an open source community project, sponsored by Red Hat, that enables users to better control their Ansible project use in IT environments ● AWX is the upstream project from which the Red Hat Ansible Tower offering is ultimately derived ● AWX provides a web-based user interface, REST API, and task engine built on top of Ansible ● AWX is designed to be a frequently released, fast-moving project where all new development happens ● Ansible Tower is produced by taking selected releases of AWX, hardening them for long-term supportability, and making them available to customers as the Ansible Tower offering ● This is a tested and trusted method of software development for Red Hat, which follows a similar model to Fedora and Red Hat Enterprise Linux
  • 15. 15 Provision RHEL VMs Search for Available IPs Create DNS Entry Deploy Web App & Perform Validation Test Configure Load Balancer Configure Firewall Policies REST API
  • 16. 16
  • 20. 20 DAILY HEALTH CHECKS Scheduled by Ansible Tower to check for CRC errors, log errors and integrate with NOC/ITSM CONFIGURATION MANAGEMENT Infrastructure as code. Simplify firewall rules creation, VLAN creation, ACL rules or BGP routing using Ansible Tower survey form CONFIGURATION DRIFT Scheduled task in Ansible Tower to check for drift by comparing against baseline configuration PATCH MANAGEMENT Use Ansible to deploy new firmware SECURITY & COMPLIANCE CHECKS Check for CVE and ensure security policies, such as disabling telnet, are applied DYNAMIC DOCUMENTATION Generate dynamic documentation and audit reports COMMON NETWORKING USE CASES
  • 21. 21 - name: Update Palo Alto Firewall panos_security_rule: ip_address: "{{ firewall_node }}" username: "{{ paloalto_username }}" password: "{{ paloalto_password }}" operation: "{{ firewall_operation }}" rule_name: "{{ rule_name }}" source_ip: "{{ srcipaddress }}" source_user: 'any' destination_ip: "{{ dstipaddress }}" category: 'any' application: "{{ application }}" service: "{{ service }}" hip_profiles: 'any' action: "{{ firewall_action }}" devicegroup: "{{ device_group }}" PLAYBOOK EXAMPLE: PALO ALTO SECURITY RULE
  • 22. 22 --- - name: configure ios interface hosts: ios01 tasks: - name: collect device running-config ios_command: commands: show running-config interface GigabitEthernet0/2 provider: “{{ cli }}” register: config - name: administratively enable interface ios_config: lines: no shutdown parents: interface GigabitEthernet0/2 provider: “{{ cli }}” when: ‘”shutdown” in config.stdout[0]‘ - name: verify operational status ios_command: commands: - show interfaces GigabitEthernet0/2 - show cdp neighbors GigabitEthernet0/2 detail waitfor: - result[0] contains ‘line protocol is up’ - result[1] contains ‘iosxr03’ - result[1] contains ’10.0.0.42’ provider: “{{ cli }}” PLAYBOOK EXAMPLE: CISCO AUTOMATION
  • 23. 23 --- - hosts: all connection: local gather_facts: no tasks: - name: Set the system attributes net_system: hostname: "{{ net_hostname }}" domain_name: "{{ site_domain_name }}" name_servers: "{{ site_nameservers }}" domain_search: "{{ site_domain_search }}" [switches] c3850-1 ansible_host=192.168.12.3 ansible_network_os=ios c3560-1 ansible_host=192.168.12.2 ansible_network_os=ios j2300-1 ansible_host=192.168.12.4 ansible_network_os=junos [network:children] switches PLAYBOOK EXAMPLE: AUTOMATION ACROSS MULTIPLE DEVICES
  • 24. 24 PLAYBOOK EXAMPLE: FIRMWARE CHECK --- - hosts: cisco connection: local gather_facts: False vars: desired_version: "7.0(3)I7(1)" tasks: - name: gathering nxos facts nxos_facts: provider: "{{login_info}}" - name: create HTML report template: src: report.j2 dest: /var/www/html/generated_report.html delegate_to: localhost run_once: true
  • 25. 25 PLAYBOOK EXAMPLE: CONFIG DRIFT tasks: - name: diff the running against the intended config nxos_config: diff_against: intended provider: "{{ provider }}" intended_config: "{{ lookup('file', 'backup.txt') }}" # ansible-playbook intended_vs_running.yml --diff PLAY [n9k] ******************************************************************* TASK [diff against the startup config] *************************************** --- before +++ after @@ -50,8 +50,6 @@ no switchport ip address 5.5.5.5/24 interface Ethernet1/6 - no switchport - ip address 6.6.6.6/24 interface Ethernet1/7 interface Ethernet1/8 interface Ethernet1/9
  • 27. 27 PALO ALTO INTRUSION USE CASE Threat Prevention logs Malware and phishing logs Correlated Event logs System logs Data filtering logs Traps logs … ... 10.5.3.1 Compromised Dynamic Address Group Policy Source Action Quarantine Dynamic Address Group Deny All 1. Granular log filtering 2. Automated actions on the NGFW HTTP/HTTPS AUTO-TAG 3. Trigger API call to ITSM to alert NOC about the threat Brute Force Attack Alert Received Host is 10.5.3.1 HTTP/HTTPS 4. Operator trigger Ansible workflow to quarantine 10.5.3.0/24 subnet
  • 28. 28 CISCO AND FORTINET MANAGEMENT
  • 29. 29 GETTING STARTED ● E-Books (Part 1, Part 2) ansible.com/ebooks ● Network Automation Workshop Road Show ansible.com/workshops ● Events: Automates, Meetups, and best of all ... ansible.com/automates