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
28
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
PLATEAU で バーチャル花火大会
tatsuya1970
0
160
【CEDEC2026】コードレビュー支援ツール開発から学ぶ:LLMを用いた業務システムの実践的な運用設計と誤出力対策
cygames
PRO
0
820
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
4
1.8k
Apache Icebergインフラストラクチャ:ストレージ・カタログ・エンジンの選択肢とClouderaプラットフォームでの実装
tsugiyama
0
110
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
Bits AI を制するものは Datadog を制す / The player that controls Bits AI, controls Datadog
kaminashi
0
110
Kiro Crew入門 - 常駐エージェントの仕組みと使いどころ / Intro to Kiro Crew
k_adachi_01
1
230
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
ボトムアップ文化が強い組織で セキュリティをどう根付かせていくかの現在進行形の話 / Making Security Stick in a Bottom-Up Organization
yamaguchitk333
0
230
【CEDEC2026】次世代デジタルカードゲームのサーバー設計と運用 〜『Shadowverse: Worlds Beyond』の舞台裏~
cygames
PRO
1
1.3k
ガバメント AI 源内を地方自治体は活用できるのか可能性と課題、期待について
takeda_h
2
430
TypeScript入門 2026
recruitengineers
PRO
3
620
Featured
See All Featured
The Mindset for Success: Future Career Progression
greggifford
PRO
0
450
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Balancing Empowerment & Direction
lara
6
1.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
370
Site-Speed That Sticks
csswizardry
13
1.4k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
240
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Agile that works and the tools we love
rasmusluckow
331
22k
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!