SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
ANSIBLE OVERVIEW
Raul Leite
rleite@redhat.com
SR SA Cloud/Platform
AGENDA
ANSIBLE CORE
ANSIBLE TOWER
ANSIBLE AND WINDOWS
ANSIBLE AND SATELLITE
ANSIBLE CORE
WHAT IS ANSIBLE?
​​Simple Automation Language
Automation Engine
WHAT IS ANSIBLE USED FOR?
Provisioning Configuration
Management
Application
Deployment
Security &
Compliance
Continuous
Delivery
Orchestration
HOW DOES ANSIBLE WORK?
PLAYBOOK
---
- name: install and start apache
hosts: all
vars:
http_port: 80
max_clients: 200
remote_user: root
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
PLAYBOOK
---
# Create a new VM on an ESX server
- name: launch instances
hosts: localhost
connection: local
# gather_facts: False
tasks:
- vsphere_guest:
vcenter_hostname: 162.223.13.228
guest: demo-dj-from-template
from_template: yes
template_src: demo-dj-template
# cluster: MainCluster
resource_pool: "/Resources"
- vsphere_guest:
guest: demo-dj-from-template
state: powered_on
vm_extra_config:
vcpu.hotadd: yes
mem.hotadd: yes
notes: This is a test VM
vm_disk:
disk1:
size_gb: 10
type: thin
datastore: storage001
vm_nic:
nic1:
MODULES
cloudformation - Create or delete an AWS CloudFormation stack
cloudtrail (E) - manage CloudTrail creation and deletion
dynamodb_table (E) - Create, update or delete AWS Dynamo DB tables.
ec2 - create, terminate, start or stop an instance in ec2
ec2_ami - create or destroy an image in ec2
ec2_ami_copy (E) - copies AMI between AWS regions, return new image id
ec2_ami_find - Searches for AMIs to obtain the AMI ID and other information
ec2_ami_search (D) - Retrieve AWS AMI information for a given operating system.
ec2_asg - Create or delete AWS Autoscaling Groups
ec2_eip - associate an EC2 elastic IP with an instance.
ec2_elb - De-registers or registers instances from EC2 ELBs
ec2_elb_facts (E) - Gather facts about EC2 Elastic Load Balancers in AWS
ec2_elb_lb - Creates or destroys Amazon ELB.
ec2_eni (E) - Create and optionally attach an Elastic Network Interface (ENI) to an instance
ec2_eni_facts (E) - Gather facts about ec2 ENI interfaces in AWS
ec2_facts - Gathers facts about remote hosts within ec2 (aws)
ec2_group - maintain an ec2 VPC security group.
ec2_key - maintain an ec2 key pair.
ec2_lc - Create or delete AWS Autoscaling Launch Configurations
ec2_metric_alarm - Create/update or delete AWS Cloudwatch ‘metric alarms’
ec2_remote_facts (E) - Gather facts about ec2 instances in AWS
ec2_scaling_policy - Create or delete AWS scaling policies for Autoscaling groups
ec2_snapshot - creates a snapshot from an existing volume
ec2_snapshot_facts (E) - Gather facts about ec2 volume snapshots in AWS
ec2_tag - create and remove tag(s) to ec2 resources.
ec2_vol - create and attach a volume, return volume id and device map
ec2_vol_facts (E) - Gather facts about ec2 volumes in AWS
ec2_vpc - configure AWS virtual private clouds
ec2_vpc_dhcp_options (E) - Manages DHCP Options, and can ensure the DHCP options for the given VPC
ec2_vpc_igw (E) - Manage an AWS VPC Internet gateway
RUN ANSIBLE COMMAND
ansible atlanta -m copy -a "src=/etc/hosts dest=/tmp/hosts"
HOW DOES ANSIBLE WORK?
WHY ANSIBLE?
EASE OF USE
NON-DISRUPTIVE
CROSS-PLATFORM
EASE OF USE
HUMAN READABLE
NO PROGRAMMING EXPERTISE
BATTERIES INCLUDED
NON-DISRUPTIVE
AGENTLESS
OPENSSH & WINRM
CROSS-PLATFORM
LINUX, UNIX, WINDOWS
PHYSICAL, VIRTUAL, CLOUD, CONTAINER
NETWORK DEVICES
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
ANSIBLE TOWER FEATURES
Role-based access control keeps environments secure and teams
efficient
Non-privileged users can safely deploy entire applications with
push-button deployment access
All Ansible automations are centrally logged, ensuring complete
auditing and compliance capability
ANSIBLE TOWER FEATURES
Compare and contrast machines over time with system tracking
Network and enterprise account integration allows users and
teams to managed via SAML, Active Directory, RADIUS and more
Configure active/passive high availability through an intuitive
wizard
ANSIBLE AND WINDOWS
WINDOWS CAPABILITY
WINDOWS MODULES
NT LAN MANAGER
KERBEROS DELEGATION
WIN_REBOOT
MANAGE WINDOWS REGISTRY
WINDOWS MODULES
win_acl (E) - Set file/directory permissions for a system user or group.
win_acl_inheritance (E) - Change ACL inheritance
win_chocolatey (E) - Installs packages using chocolatey
win_copy - Copies files to remote locations on windows hosts.
win_dotnet_ngen (E) - Runs ngen to recompile DLLs after .NET updates
win_environment (E) - Modifies environment variables on windows hosts.
win_feature - Installs and uninstalls Windows Features
win_file - Creates, touches or removes files or directories.
win_file_version (E) - Get DLL or EXE file build version
win_firewall_rule (E) - Windows firewall automation
win_get_url - Fetches a file from a given URL
win_group - Add and remove local groups
win_iis_virtualdirectory (E) - Configures a virtual directory in IIS.
win_iis_webapplication (E) - Configures a IIS Web application.
win_iis_webapppool (E) - Configures a IIS Web Application Pool.
win_iis_webbinding (E) - Configures a IIS Web site.
win_iis_website (E) - Configures a IIS Web site.
win_lineinfile - Ensure a particular line is in a file, or replace an existing line using a back-r
win_msi - Installs and uninstalls Windows MSI files
win_nssm (E) - NSSM - the Non-Sucking Service Manager
win_owner (E) - Set owner
win_package (E) - Installs/Uninstalls a installable package, either from local file system or url
win_ping - A windows version of the classic ping module.
win_reboot - Reboot a windows machine
win_regedit (E) - Add, Edit, or Remove Registry Keys and Values
win_regmerge (E) - Merges the contents of a registry file into the windows registry
win_robocopy (E) - Synchronizes the contents of two directories using Robocopy.
win_scheduled_task (E) - Manage scheduled tasks
win_service - Manages Windows services
win_share (E) - Manage Windows shares
win_stat - returns information about a Windows file
EXAMPLE PLAYBOOK
---
# This playbook installs and enables IIS on Windows hosts
- name: Install IIS
hosts: all
gather_facts: false
tasks:
- name: Install IIS
win_feature:
name: "Web-Server"
state: present
restart: yes
include_sub_features: yes
include_management_tools: yes
EXAMPLE PLAYBOOK
---
# This playbook uses the win_get_url module to download a simple HTML file for IIS
- name: Download simple web site
hosts: windows
gather_facts: false
tasks:
- name: Download simple web site to 'C:inetpubwwwrootansible.html'
win_get_url:
url: 'https://raw.githubusercontent.com/thisdavejohnson/mywebapp/master/index.html'
dest: 'C:inetpubwwwrootansible.html'
INTEGRATING ANSIBLE
Ansible
Ansible
Ansible

Weitere ähnliche Inhalte

Was ist angesagt?

Terraform Introduction
Terraform IntroductionTerraform Introduction
Terraform Introductionsoniasnowfrog
 
Ansible Introduction
Ansible Introduction Ansible Introduction
Ansible Introduction Robert Reiz
 
Helm - Application deployment management for Kubernetes
Helm - Application deployment management for KubernetesHelm - Application deployment management for Kubernetes
Helm - Application deployment management for KubernetesAlexei Ledenev
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentationKumar Y
 
Docker Networking Overview
Docker Networking OverviewDocker Networking Overview
Docker Networking OverviewSreenivas Makam
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installationRobert Bohne
 
DevOps Meetup ansible
DevOps Meetup   ansibleDevOps Meetup   ansible
DevOps Meetup ansiblesriram_rajan
 
DevOps with Ansible
DevOps with AnsibleDevOps with Ansible
DevOps with AnsibleSwapnil Jain
 
Kubernetes Architecture and Introduction
Kubernetes Architecture and IntroductionKubernetes Architecture and Introduction
Kubernetes Architecture and IntroductionStefan Schimanski
 
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법Open Source Consulting
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to dockerInstruqt
 

Was ist angesagt? (20)

Terraform Introduction
Terraform IntroductionTerraform Introduction
Terraform Introduction
 
Ansible
AnsibleAnsible
Ansible
 
Automating with Ansible
Automating with AnsibleAutomating with Ansible
Automating with Ansible
 
Ansible Introduction
Ansible Introduction Ansible Introduction
Ansible Introduction
 
Helm - Application deployment management for Kubernetes
Helm - Application deployment management for KubernetesHelm - Application deployment management for Kubernetes
Helm - Application deployment management for Kubernetes
 
Ansible 101
Ansible 101Ansible 101
Ansible 101
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Docker Networking Overview
Docker Networking OverviewDocker Networking Overview
Docker Networking Overview
 
DevOps with Kubernetes
DevOps with KubernetesDevOps with Kubernetes
DevOps with Kubernetes
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
DevOps Meetup ansible
DevOps Meetup   ansibleDevOps Meetup   ansible
DevOps Meetup ansible
 
DevOps with Ansible
DevOps with AnsibleDevOps with Ansible
DevOps with Ansible
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes Architecture and Introduction
Kubernetes Architecture and IntroductionKubernetes Architecture and Introduction
Kubernetes Architecture and Introduction
 
infrastructure as code
infrastructure as codeinfrastructure as code
infrastructure as code
 
Ansible
AnsibleAnsible
Ansible
 
Terraform
TerraformTerraform
Terraform
 
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
 
Ansible Playbook
Ansible PlaybookAnsible Playbook
Ansible Playbook
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 

Ähnlich wie Ansible

Automating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAutomating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAlexander Feschenko
 
Deploying Rails App On Ec2
Deploying Rails App On Ec2Deploying Rails App On Ec2
Deploying Rails App On Ec2Akhil Bansal
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation ToolsEdwin Beekman
 
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014Amazon Web Services
 
Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Edwin Beekman
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationMo Rawi
 
Ansible inside
Ansible insideAnsible inside
Ansible insideIdeato
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdfNigussMehari4
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...Amazon Web Services
 
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
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Banking at Ho Chi Minh city
 
Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsRaul Leite
 
Cloud Meetup - Automation in the Cloud
Cloud Meetup - Automation in the CloudCloud Meetup - Automation in the Cloud
Cloud Meetup - Automation in the Cloudpetriojala123
 
Deploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalkDeploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalkJulien SIMON
 
Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2Freddy Ortiz
 
Deploying windows containers with kubernetes
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetesBen Hall
 

Ähnlich wie Ansible (20)

Automating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAutomating Azure VMs with PowerShell
Automating Azure VMs with PowerShell
 
Deploying Rails App On Ec2
Deploying Rails App On Ec2Deploying Rails App On Ec2
Deploying Rails App On Ec2
 
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony LinAnsible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
 
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
 
Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestration
 
Ansible inside
Ansible insideAnsible inside
Ansible inside
 
Ansible - Hands on Training
Ansible - Hands on TrainingAnsible - Hands on Training
Ansible - Hands on Training
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdf
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
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
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...
 
Kash Kubernetified
Kash KubernetifiedKash Kubernetified
Kash Kubernetified
 
Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOps
 
Cloud Meetup - Automation in the Cloud
Cloud Meetup - Automation in the CloudCloud Meetup - Automation in the Cloud
Cloud Meetup - Automation in the Cloud
 
Deploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalkDeploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalk
 
Automation day red hat ansible
   Automation day red hat ansible    Automation day red hat ansible
Automation day red hat ansible
 
Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2
 
Deploying windows containers with kubernetes
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetes
 

Mehr von Raul Leite

Latinoware - Quarkus io cloud native apps
Latinoware - Quarkus io cloud native appsLatinoware - Quarkus io cloud native apps
Latinoware - Quarkus io cloud native appsRaul Leite
 
Latinoware 2019 - Kubernetes a plataforma de grandes ideias
Latinoware 2019 - Kubernetes a plataforma de grandes ideiasLatinoware 2019 - Kubernetes a plataforma de grandes ideias
Latinoware 2019 - Kubernetes a plataforma de grandes ideiasRaul Leite
 
Containers e DevOps
Containers e DevOps Containers e DevOps
Containers e DevOps Raul Leite
 
Red Hat Enterprise Linux 8 - Novidades
Red Hat Enterprise Linux 8 - NovidadesRed Hat Enterprise Linux 8 - Novidades
Red Hat Enterprise Linux 8 - NovidadesRaul Leite
 
Case Itaú OpenStack Red Hat
Case Itaú OpenStack Red HatCase Itaú OpenStack Red Hat
Case Itaú OpenStack Red HatRaul Leite
 
O que é OpenShift ?
O que é OpenShift ?O que é OpenShift ?
O que é OpenShift ?Raul Leite
 
O que é OpenShift ?
O que é OpenShift ?O que é OpenShift ?
O que é OpenShift ?Raul Leite
 
Known basic of NFV Features
Known basic of NFV FeaturesKnown basic of NFV Features
Known basic of NFV FeaturesRaul Leite
 
Nuvem e transformação digital
Nuvem e transformação digital  Nuvem e transformação digital
Nuvem e transformação digital Raul Leite
 
RHOSP6 DELL Summit - OpenStack
RHOSP6 DELL Summit - OpenStack RHOSP6 DELL Summit - OpenStack
RHOSP6 DELL Summit - OpenStack Raul Leite
 
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOS
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOSA PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOS
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOSRaul Leite
 
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)Raul Leite
 
Apresentação Cloud - Open(Stack/Shift)
Apresentação Cloud - Open(Stack/Shift)Apresentação Cloud - Open(Stack/Shift)
Apresentação Cloud - Open(Stack/Shift)Raul Leite
 
Cgroups - Latinoware 2012
Cgroups - Latinoware 2012Cgroups - Latinoware 2012
Cgroups - Latinoware 2012Raul Leite
 

Mehr von Raul Leite (14)

Latinoware - Quarkus io cloud native apps
Latinoware - Quarkus io cloud native appsLatinoware - Quarkus io cloud native apps
Latinoware - Quarkus io cloud native apps
 
Latinoware 2019 - Kubernetes a plataforma de grandes ideias
Latinoware 2019 - Kubernetes a plataforma de grandes ideiasLatinoware 2019 - Kubernetes a plataforma de grandes ideias
Latinoware 2019 - Kubernetes a plataforma de grandes ideias
 
Containers e DevOps
Containers e DevOps Containers e DevOps
Containers e DevOps
 
Red Hat Enterprise Linux 8 - Novidades
Red Hat Enterprise Linux 8 - NovidadesRed Hat Enterprise Linux 8 - Novidades
Red Hat Enterprise Linux 8 - Novidades
 
Case Itaú OpenStack Red Hat
Case Itaú OpenStack Red HatCase Itaú OpenStack Red Hat
Case Itaú OpenStack Red Hat
 
O que é OpenShift ?
O que é OpenShift ?O que é OpenShift ?
O que é OpenShift ?
 
O que é OpenShift ?
O que é OpenShift ?O que é OpenShift ?
O que é OpenShift ?
 
Known basic of NFV Features
Known basic of NFV FeaturesKnown basic of NFV Features
Known basic of NFV Features
 
Nuvem e transformação digital
Nuvem e transformação digital  Nuvem e transformação digital
Nuvem e transformação digital
 
RHOSP6 DELL Summit - OpenStack
RHOSP6 DELL Summit - OpenStack RHOSP6 DELL Summit - OpenStack
RHOSP6 DELL Summit - OpenStack
 
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOS
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOSA PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOS
A PRINCIPAL PLATAFORMA ABERTA, FAÇA MAIS COM MENOS
 
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
 
Apresentação Cloud - Open(Stack/Shift)
Apresentação Cloud - Open(Stack/Shift)Apresentação Cloud - Open(Stack/Shift)
Apresentação Cloud - Open(Stack/Shift)
 
Cgroups - Latinoware 2012
Cgroups - Latinoware 2012Cgroups - Latinoware 2012
Cgroups - Latinoware 2012
 

Kürzlich hochgeladen

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Kürzlich hochgeladen (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Ansible

  • 2. AGENDA ANSIBLE CORE ANSIBLE TOWER ANSIBLE AND WINDOWS ANSIBLE AND SATELLITE
  • 4. WHAT IS ANSIBLE? ​​Simple Automation Language Automation Engine
  • 5. WHAT IS ANSIBLE USED FOR? Provisioning Configuration Management Application Deployment Security & Compliance Continuous Delivery Orchestration
  • 7. PLAYBOOK --- - name: install and start apache hosts: all vars: http_port: 80 max_clients: 200 remote_user: root 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
  • 8. PLAYBOOK --- # Create a new VM on an ESX server - name: launch instances hosts: localhost connection: local # gather_facts: False tasks: - vsphere_guest: vcenter_hostname: 162.223.13.228 guest: demo-dj-from-template from_template: yes template_src: demo-dj-template # cluster: MainCluster resource_pool: "/Resources" - vsphere_guest: guest: demo-dj-from-template state: powered_on vm_extra_config: vcpu.hotadd: yes mem.hotadd: yes notes: This is a test VM vm_disk: disk1: size_gb: 10 type: thin datastore: storage001 vm_nic: nic1:
  • 9. MODULES cloudformation - Create or delete an AWS CloudFormation stack cloudtrail (E) - manage CloudTrail creation and deletion dynamodb_table (E) - Create, update or delete AWS Dynamo DB tables. ec2 - create, terminate, start or stop an instance in ec2 ec2_ami - create or destroy an image in ec2 ec2_ami_copy (E) - copies AMI between AWS regions, return new image id ec2_ami_find - Searches for AMIs to obtain the AMI ID and other information ec2_ami_search (D) - Retrieve AWS AMI information for a given operating system. ec2_asg - Create or delete AWS Autoscaling Groups ec2_eip - associate an EC2 elastic IP with an instance. ec2_elb - De-registers or registers instances from EC2 ELBs ec2_elb_facts (E) - Gather facts about EC2 Elastic Load Balancers in AWS ec2_elb_lb - Creates or destroys Amazon ELB. ec2_eni (E) - Create and optionally attach an Elastic Network Interface (ENI) to an instance ec2_eni_facts (E) - Gather facts about ec2 ENI interfaces in AWS ec2_facts - Gathers facts about remote hosts within ec2 (aws) ec2_group - maintain an ec2 VPC security group. ec2_key - maintain an ec2 key pair. ec2_lc - Create or delete AWS Autoscaling Launch Configurations ec2_metric_alarm - Create/update or delete AWS Cloudwatch ‘metric alarms’ ec2_remote_facts (E) - Gather facts about ec2 instances in AWS ec2_scaling_policy - Create or delete AWS scaling policies for Autoscaling groups ec2_snapshot - creates a snapshot from an existing volume ec2_snapshot_facts (E) - Gather facts about ec2 volume snapshots in AWS ec2_tag - create and remove tag(s) to ec2 resources. ec2_vol - create and attach a volume, return volume id and device map ec2_vol_facts (E) - Gather facts about ec2 volumes in AWS ec2_vpc - configure AWS virtual private clouds ec2_vpc_dhcp_options (E) - Manages DHCP Options, and can ensure the DHCP options for the given VPC ec2_vpc_igw (E) - Manage an AWS VPC Internet gateway
  • 10. RUN ANSIBLE COMMAND ansible atlanta -m copy -a "src=/etc/hosts dest=/tmp/hosts"
  • 12. WHY ANSIBLE? EASE OF USE NON-DISRUPTIVE CROSS-PLATFORM
  • 13. EASE OF USE HUMAN READABLE NO PROGRAMMING EXPERTISE BATTERIES INCLUDED
  • 15. CROSS-PLATFORM LINUX, UNIX, WINDOWS PHYSICAL, VIRTUAL, CLOUD, CONTAINER NETWORK DEVICES
  • 17. WHAT IS ANSIBLE TOWER? Ansible Tower is an enterprise framework for controlling, securing and managing your Ansible automation - with a UI and restful API
  • 18. ANSIBLE TOWER FEATURES Role-based access control keeps environments secure and teams efficient Non-privileged users can safely deploy entire applications with push-button deployment access All Ansible automations are centrally logged, ensuring complete auditing and compliance capability
  • 19. ANSIBLE TOWER FEATURES Compare and contrast machines over time with system tracking Network and enterprise account integration allows users and teams to managed via SAML, Active Directory, RADIUS and more Configure active/passive high availability through an intuitive wizard
  • 21. WINDOWS CAPABILITY WINDOWS MODULES NT LAN MANAGER KERBEROS DELEGATION WIN_REBOOT MANAGE WINDOWS REGISTRY
  • 22. WINDOWS MODULES win_acl (E) - Set file/directory permissions for a system user or group. win_acl_inheritance (E) - Change ACL inheritance win_chocolatey (E) - Installs packages using chocolatey win_copy - Copies files to remote locations on windows hosts. win_dotnet_ngen (E) - Runs ngen to recompile DLLs after .NET updates win_environment (E) - Modifies environment variables on windows hosts. win_feature - Installs and uninstalls Windows Features win_file - Creates, touches or removes files or directories. win_file_version (E) - Get DLL or EXE file build version win_firewall_rule (E) - Windows firewall automation win_get_url - Fetches a file from a given URL win_group - Add and remove local groups win_iis_virtualdirectory (E) - Configures a virtual directory in IIS. win_iis_webapplication (E) - Configures a IIS Web application. win_iis_webapppool (E) - Configures a IIS Web Application Pool. win_iis_webbinding (E) - Configures a IIS Web site. win_iis_website (E) - Configures a IIS Web site. win_lineinfile - Ensure a particular line is in a file, or replace an existing line using a back-r win_msi - Installs and uninstalls Windows MSI files win_nssm (E) - NSSM - the Non-Sucking Service Manager win_owner (E) - Set owner win_package (E) - Installs/Uninstalls a installable package, either from local file system or url win_ping - A windows version of the classic ping module. win_reboot - Reboot a windows machine win_regedit (E) - Add, Edit, or Remove Registry Keys and Values win_regmerge (E) - Merges the contents of a registry file into the windows registry win_robocopy (E) - Synchronizes the contents of two directories using Robocopy. win_scheduled_task (E) - Manage scheduled tasks win_service - Manages Windows services win_share (E) - Manage Windows shares win_stat - returns information about a Windows file
  • 23. EXAMPLE PLAYBOOK --- # This playbook installs and enables IIS on Windows hosts - name: Install IIS hosts: all gather_facts: false tasks: - name: Install IIS win_feature: name: "Web-Server" state: present restart: yes include_sub_features: yes include_management_tools: yes
  • 24. EXAMPLE PLAYBOOK --- # This playbook uses the win_get_url module to download a simple HTML file for IIS - name: Download simple web site hosts: windows gather_facts: false tasks: - name: Download simple web site to 'C:inetpubwwwrootansible.html' win_get_url: url: 'https://raw.githubusercontent.com/thisdavejohnson/mywebapp/master/index.html' dest: 'C:inetpubwwwrootansible.html'