Automation And Ansible
  ➜ ~ hostnamectl 
        Static hostname: boaventura­rodrigues­neto
        Icon name: Boa
        Chassis: 187cm
        Machine ID: ##.###.###­#
        Boot ID: 1981/05/08
            
 Operating System: Agnostic
        Kernel Version: 3.5
        Architecture: human being (so far)
_______________________________
< What's with the name Ansible? >
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
       
           ^__^
           (oo)_______
            (__)       )/
                ||­­­­w |
                ||     ||
__________________________________
< Ansible: Automation For Everyone >
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
­­­
  ­ easy: Radically simple IT automation
    
  ­ free: Open source IT
    ­ configuration management
    ­ deployment management
    ­ orchestration tool
  ­ agentless: Agentless architecture
___________________
< Ansible: Inventory >
­­­­­­­­­­­­­­­­­­­­
#/etc/ansible/hosts
web01.example.local
web02.example.local
lb01.example.local
[webservers]
web01.example.local
web02.example.local
[loadbalancers]
lb01.example.local
_______________
< Ansible: Play >
­­­­­­­­­­­­­­­
tasks:
  ­ name: Install NTP on Ubuntu systems
    apt: name=ntp state=installed update_cache=yes
___________________________________
< Ansible: Variables and Conditions >
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
tasks:
  ­ name: Install NTP on Debian­like systems
    apt: name=ntp state=installed update_cache=yes
    when: ansible_os_family == ‘Debian’
  ­ name: Install NTP on RedHat­like systems
    yum: name=ntp state=installed
    when: ansible_os_family == ‘RedHat’
___________________
< Ansible: Playbook >
­­­­­­­­­­­­­­­­­­­
­­­
  ­ hosts: all
    Serial: 1
    vars:
      ­ ntp_servers: [a.ntp.br, b.ntp.br]
    tasks:
      ­ name: Set up ntp.conf
        template: src=ntp.conf.j2 dest=/etc/ntp.conf
___________________________
< Ansible: Jinja2 Templates >
­­­­­­­­­­­­­­­­­­­­­­­­­­­
#/etc/ansible/roles/ntp/templates/ntp.conf.j2
# NTP configuration file template
driftfile /var/lib/ntp/ntp.drift
# Loop through ntp servers
{% for i in ntp_servers %}
servers {{i}}
{{% endfor %}}
___________________________
< Ansible: Jinja2 Templates >
­­­­­­­­­­­­­­­­­­­­­­­­­­­
#/etc/ansible/roles/ntp/templates/ntp.conf.j2
# NTP configuration file template
driftfile /var/lib/ntp/ntp.drift
# Loop through ntp servers
servers a.ntp.br
servers a.ntp.br
________________
< Ansible: Roles >
­­­­­­­­­­­­­­­­
ntp
 ├── defaults
     │ └── main.yml
 ├── handlers
     │ └── main.yml
 ├── meta
     │ └── main.yml
 ├── README.md
 ├── tasks
     │ └── main.yml
 ├── templates
     │ └── ntp.conf.j2
___________________
< Happy Automating! >
­­­­­­­­­­­­­­­­­­­
       
           ^__^
           (oo)_______
            (__)       )/
                ||­­­­w |
                ||     ||

More Related Content

PDF
poster
PDF
Desymfony 2011 - Habemus Bundles
PDF
My Robot Poops - In JavaScript (with web sockets)
PPTX
Automated Deployments with Ansible
PDF
How to Become a Thought Leader in Your Niche
PPTX
Chef Presentation
PDF
Aplication and Transport layer- a practical approach
PDF
Advanced Crypto Service Provider – cryptography as a service
poster
Desymfony 2011 - Habemus Bundles
My Robot Poops - In JavaScript (with web sockets)
Automated Deployments with Ansible
How to Become a Thought Leader in Your Niche
Chef Presentation
Aplication and Transport layer- a practical approach
Advanced Crypto Service Provider – cryptography as a service

Viewers also liked (20)

PPTX
PDF
Recover A RSA Private key from a TLS session with perfect forward secrecy
PPTX
Unified log-meetup-20160420
PPTX
3429 How to transform your messaging environment to a secure messaging envi...
PPT
C 6-gc3a9nero-streptococcus
PDF
An analysis of TLS handshake proxying
PDF
Kubernetes в Avito - Евгений Ольков
PDF
1086: The SSL Problem and How to Deploy SHA2 Certificates (with Mark Myers)
PDF
DevOps for Humans - Ansible for Drupal Deployment Victory!
PPTX
Best Practice TLS for IBM Domino
PPTX
CCNA RS_NB - Chapter 5
PPTX
Docker ansible-make-chef-puppet-unnecessary-minnihan
PDF
Ansible 實戰:top down 觀點
PDF
100 Percent Encrypted Web New Challenges For TLS RSA Conference 2017
PPT
Secure Socket Layer
PDF
IT Automation with Ansible
PPT
Ansible presentation
PDF
사업모델검증 계획서
PPTX
El núcleo, ácidos nucleícos bio grado 10
PPTX
Natureza jurídica e princípios
Recover A RSA Private key from a TLS session with perfect forward secrecy
Unified log-meetup-20160420
3429 How to transform your messaging environment to a secure messaging envi...
C 6-gc3a9nero-streptococcus
An analysis of TLS handshake proxying
Kubernetes в Avito - Евгений Ольков
1086: The SSL Problem and How to Deploy SHA2 Certificates (with Mark Myers)
DevOps for Humans - Ansible for Drupal Deployment Victory!
Best Practice TLS for IBM Domino
CCNA RS_NB - Chapter 5
Docker ansible-make-chef-puppet-unnecessary-minnihan
Ansible 實戰:top down 觀點
100 Percent Encrypted Web New Challenges For TLS RSA Conference 2017
Secure Socket Layer
IT Automation with Ansible
Ansible presentation
사업모델검증 계획서
El núcleo, ácidos nucleícos bio grado 10
Natureza jurídica e princípios
Ad

Similar to Automation and ansible (20)

PDF
#OktoCampus - Workshop : An introduction to Ansible
PDF
Ansible is the simplest way to automate. SymfonyCafe, 2015
PDF
Ansible introduction - XX Betabeers Galicia
PPTX
Introduction to ansible
PPTX
Automating with Ansible
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
PDF
OSDC 2013 | Ansible: configuration management doesn't have to be complicated ...
PPTX
Intro to-ansible-sep7-meetup
PPTX
Ansible_Technical_Session_Presentation.pptx
PPTX
Introduction to Ansible - (dev ops for people who hate devops)
PDF
Ansible
PDF
Introducing Ansible
PDF
Ansible Automation to Rule Them All
PPTX
Ansible
PDF
Ansible at work
PPTX
slidesaver.app_ptiswhansiblewyeddik.pptx
PDF
Ansible nice-pdf-copy-for-pres
PPTX
Ansible_Automation_tools that used in devops
PDF
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
PDF
DevOps Meetup ansible
#OktoCampus - Workshop : An introduction to Ansible
Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible introduction - XX Betabeers Galicia
Introduction to ansible
Automating with Ansible
Ansible is the simplest way to automate. MoldCamp, 2015
OSDC 2013 | Ansible: configuration management doesn't have to be complicated ...
Intro to-ansible-sep7-meetup
Ansible_Technical_Session_Presentation.pptx
Introduction to Ansible - (dev ops for people who hate devops)
Ansible
Introducing Ansible
Ansible Automation to Rule Them All
Ansible
Ansible at work
slidesaver.app_ptiswhansiblewyeddik.pptx
Ansible nice-pdf-copy-for-pres
Ansible_Automation_tools that used in devops
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
DevOps Meetup ansible
Ad

Recently uploaded (20)

PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PPTX
Computer Software - Technology and Livelihood Education
PPTX
Introduction to Windows Operating System
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PDF
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
CNN LeNet5 Architecture: Neural Networks
PPTX
Cybersecurity: Protecting the Digital World
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PPTX
assetexplorer- product-overview - presentation
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Website Design Services for Small Businesses.pdf
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
Topaz Photo AI Crack New Download (Latest 2025)
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Computer Software - Technology and Livelihood Education
Introduction to Windows Operating System
GSA Content Generator Crack (2025 Latest)
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
CCleaner 6.39.11548 Crack 2025 License Key
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
Weekly report ppt - harsh dattuprasad patel.pptx
Designing Intelligence for the Shop Floor.pdf
CNN LeNet5 Architecture: Neural Networks
Cybersecurity: Protecting the Digital World
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
assetexplorer- product-overview - presentation
Computer Software and OS of computer science of grade 11.pptx
Website Design Services for Small Businesses.pdf
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Advanced SystemCare Ultimate Crack + Portable (2025)

Automation and ansible