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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Rafael Carreiro
April 24, 2021
Technology
25
0
Share
Ansible do Zero ao AWX
Flisol 2021 - Ansible do Zero ao AWX
https://github.com/carreirorco/flisol-demo
Rafael Carreiro
April 24, 2021
More Decks by Rafael Carreiro
See All by Rafael Carreiro
Introducao às Expressoes Regulares
carreirorco
0
110
Other Decks in Technology
See All in Technology
新規ゲーム開発におけるAI駆動開発のリアル
202409e2
0
2.1k
Gradle×GitHub_ActionsでCI時間を約50%短縮 ジョブ分割の設計と落とし穴 / Cutting CI Time by ~50% with Gradle and GitHub Actions: Job-Splitting Design and Pitfalls
takatty
0
620
Claude Codeを組織で使いこなす— サーバサイドAIエージェント運用の実践知
techtekt
PRO
0
190
オンコールの負荷軽減のためのBits Assistant 活用方法 / How to Use Bits Assistant to Reduce the Workload on On-Call Staff
sms_tech
1
380
探して_入れて_作って_使う_Agent_Skills___LT.pdf
peintangos
2
160
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
140
新規事業を牽引する技術選定 〜フルスタックTypeScript開発の実践事例〜
nullnull
2
260
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
1k
oracle-to-databricks-migration-with-llm-and-dbt
casek
1
430
サプライチェーンセキュリティの空白地帯 - 信頼できる”依存性”の未来を考える
rung
PRO
2
650
JEP 522 Deep Dive - G1 GC同期コスト削減によるスループット向上を徹底検証&解説
tabatad
1
710
電子辞書Brainをネットに繋げてみた(自力編)
raspython3
0
430
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.2k
Building Applications with DynamoDB
mza
96
7.1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
150
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
370
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
310
Optimising Largest Contentful Paint
csswizardry
37
3.7k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Navigating Weather and Climate Data
rabernat
0
210
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
130
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
The Limits of Empathy - UXLibs8
cassininazir
1
350
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
360
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!