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

PDF
Ansible - Hands on Training
PDF
Ansible
PDF
Ansible Automation Platform.pdf
PDF
Red Hat OpenShift Container Platform Overview
PDF
Ansible - Introduction
PPT
Ansible presentation
PDF
Red Hat Container Strategy
PDF
Ansible
Ansible - Hands on Training
Ansible
Ansible Automation Platform.pdf
Red Hat OpenShift Container Platform Overview
Ansible - Introduction
Ansible presentation
Red Hat Container Strategy
Ansible

What's hot (20)

PPTX
Ansible presentation
PDF
IT Automation with Ansible
PDF
Automation with ansible
PDF
OpenShift 4, the smarter Kubernetes platform
PPTX
Automating with Ansible
PDF
Open shift 4 infra deep dive
PPT
Red Hat Ansible 적용 사례
ODP
An Introduction To Jenkins
PPTX
CI/CD trên Cloud OpenStack tại Viettel Networks | Hà Minh Công, Phạm Tường Chiến
ODP
Disk Performance Comparison Xen v.s. KVM
PDF
Red hat ansible automation technical deck
PDF
Terraform -- Infrastructure as Code
ODP
ansible why ?
PDF
Ansible
PDF
[오픈소스컨설팅] Ansible을 활용한 운영 자동화 교육
ODP
Introduction to Ansible
PPTX
Best practices for ansible
PPTX
DevOps at FSOFT as BOI | Nguyễn Hoài Nam, Vũ Xuân Lộc
PDF
Ansible
ODP
Openshift Container Platform
Ansible presentation
IT Automation with Ansible
Automation with ansible
OpenShift 4, the smarter Kubernetes platform
Automating with Ansible
Open shift 4 infra deep dive
Red Hat Ansible 적용 사례
An Introduction To Jenkins
CI/CD trên Cloud OpenStack tại Viettel Networks | Hà Minh Công, Phạm Tường Chiến
Disk Performance Comparison Xen v.s. KVM
Red hat ansible automation technical deck
Terraform -- Infrastructure as Code
ansible why ?
Ansible
[오픈소스컨설팅] Ansible을 활용한 운영 자동화 교육
Introduction to Ansible
Best practices for ansible
DevOps at FSOFT as BOI | Nguyễn Hoài Nam, Vũ Xuân Lộc
Ansible
Openshift Container Platform
Ad

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

PDF
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
PDF
Automação do físico ao NetSecDevOps
PPTX
F5 Meetup presentation automation 2017
PDF
Automation day red hat ansible
PDF
06 network automationwithansible
PPT
.NET Core Apps: Design & Development
PPTX
StrongLoop Overview
PDF
Weave Your Microservices with Istio
PDF
All Things Open 2019 weave-services-istio
PDF
Ato2019 weave-services-istio
PPTX
Deploying windows containers with kubernetes
DOCX
Kl 031.30 eng_class_setup_guide_1.2
PDF
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
PDF
citus™ iot ecosystem
PPTX
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
PDF
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
PDF
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
PDF
ansible_rhel_90.pdf
PDF
Bare Metal to OpenStack with Razor and Chef
PPT
Windows Server 2008 - Web and Application Hosting
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
Automação do físico ao NetSecDevOps
F5 Meetup presentation automation 2017
Automation day red hat ansible
06 network automationwithansible
.NET Core Apps: Design & Development
StrongLoop Overview
Weave Your Microservices with Istio
All Things Open 2019 weave-services-istio
Ato2019 weave-services-istio
Deploying windows containers with kubernetes
Kl 031.30 eng_class_setup_guide_1.2
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
citus™ iot ecosystem
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
ansible_rhel_90.pdf
Bare Metal to OpenStack with Razor and Chef
Windows Server 2008 - Web and Application Hosting
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
PDF
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
PDF
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
PDF
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
PDF
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
PPTX
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
PDF
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
PPTX
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
PDF
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
PPTX
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
PDF
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
PPTX
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
PDF
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
PDF
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
PPTX
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
PPTX
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
PDF
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
PDF
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
PDF
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
A Presentation on Artificial Intelligence
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
NewMind AI Weekly Chronicles - August'25 Week I
Advanced methodologies resolving dimensionality complications for autism neur...
A Presentation on Artificial Intelligence
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Monthly Chronicles - July 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
MYSQL Presentation for SQL database connectivity
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

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