Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ansible do Zero ao AWX
Search
Rafael Carreiro
April 24, 2021
Technology
0
22
Ansible do Zero ao AWX
Flisol 2021 - Ansible do Zero ao AWX
https://github.com/carreirorco/flisol-demo
Rafael Carreiro
April 24, 2021
Tweet
Share
More Decks by Rafael Carreiro
See All by Rafael Carreiro
Introducao às Expressoes Regulares
carreirorco
0
100
Other Decks in Technology
See All in Technology
TUNA Camp 2026 京都Stage ヒューリスティックアルゴリズム入門
terryu16
0
580
Datadog で実現するセキュリティ対策 ~オブザーバビリティとセキュリティを 一緒にやると何がいいのか~
a2ush
0
160
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
11k
Embeddings : Symfony AI en pratique
lyrixx
0
370
「捨てる」を設計する
kubell_hr
0
420
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
380
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
210
Physical AI on AWS リファレンスアーキテクチャ / Physical AI on AWS Reference Architecture
aws_shota
1
170
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
76k
GitHub Advanced Security × Defender for Cloudで開発とSecOpsのサイロを超える: コードとクラウドをつなぐ、開発プラットフォームのセキュリティ
yuriemori
1
110
How to install a gem
indirect
0
1.8k
「活動」は激変する。「ベース」は変わらない ~ 4つの軸で捉える_AI時代ソフトウェア開発マネジメント
sentokun
0
110
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
150
Embracing the Ebb and Flow
colly
88
5k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Between Models and Reality
mayunak
2
240
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
160
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
How to Ace a Technical Interview
jacobian
281
24k
For a Future-Friendly Web
brad_frost
183
10k
Facilitating Awesome Meetings
lara
57
6.8k
Utilizing Notion as your number one productivity tool
mfonobong
4
270
Transcript
Ansible Do Zero ao AWX
Por que vamos falar de Ansible? • Infraestrutura como código
• Versionamento • Gerenciamento centralizado • Infraestrutura imutável
# whoami • Bacharel em Sistemas de Informação pela FGP
• Analista de Infraestrutura na Arca Solutions • Entusiasta do mundo Open Source https://br.linkedin.com/in/carreirorco https://github.com/carreirorco
Por que aprender Ansible? • Simples • Poderoso • Agentless
Origem... • Foi desenvolvida por Michael DeHann, primeiro lançamento em
2012 • Adquirido pela RedHat em Outubro de 2015
Algumas características interessantes... • Comunicação via SSH • Idempotencia •
Mudança de estado
Instalação do ansible • RedHat-Like: ◦ yum install ansible •
Debian-Like: ◦ apt install ansible • Python-Pip: ◦ pip install --user ansible https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
Configurando as chaves SSH • Gerando a chave ssh: ◦
ssh-keygen -t rsa • Visualisar o conteúdo da chave: ◦ cat ~/.ssh/id_rsa.pub • Inserir chave nos servidores: ◦ ssh-copy-id USER@IP
Ad-hoc e módulos • Ad-hoc: Execução de comandos para teste
ou muito simples • Exemplos de módulos: ◦ ping ◦ shell ◦ user ◦ yum ◦ apt ◦ package ◦ copy ◦ setup
Inventários • Arquivo que descreve quais são os alvos da
automação • Por padrão o arquivo possui o formato INI • Pode ser criado dinamicamente via scripts
ansible.cfg • Arquivo de configuração do ansible • Customização da
configuração padrão • Convensão de configuração
Playbooks • Sintaxe YAML (YAML is a human friendly data
serialization) • Templates Jinja2 (Jinja is a modern and designer-friendly templating language for Python) • Variáveis, condicionais, loops • Sequencia de tarefas a serem executadas
Roles • Estrutura de arquivos padronizada • Abstração • Reutilização
de código https://galaxy.ansible.com
AWX = Ansible Tower free! • Ferramenta gráfica • REST
API • Workflow / Pipeline • Role-based access control • Dashboard
None
None
Automatize tudo!
Saiba mais em...
Obrigado! Jesus Christ is my Lord!