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
19
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
95
Other Decks in Technology
See All in Technology
AIの個性を理解し、指揮する
shoota
3
640
AI時代に必要なデータプラットフォームの要件とは by @Kazaneya_PR / 20251107
kazaneya
PRO
4
760
Data & AIの未来とLakeHouse
ishikawa_satoru
0
230
決済システムの信頼性を支える技術と運用の実践
ykagano
0
130
AIエージェントを導入する [ 社内ナレッジ活用編 ] / Implement AI agents
glidenote
1
230
LLM APIを2年間本番運用して苦労した話
ivry_presentationmaterials
11
9.1k
ソフトウェアテストのAI活用_ver1.50
fumisuke
0
150
Mackerelにおけるインシデント対応とポストモーテム - 現場での工夫と学び
taxin
0
110
ソフトウェア品質を支える テストとレビュー再考 / 吉澤 智美さん
findy_eventslides
1
430
開発者が知っておきたい複雑さの正体/where-the-complexity-comes-from
hanhan1978
5
830
OPENLOGI Company Profile for engineer
hr01
1
46k
最近読んで良かった本 / Yokohama North Meetup #10
mktakuya
0
1k
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Designing Experiences People Love
moore
142
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Scaling GitHub
holman
463
140k
RailsConf 2023
tenderlove
30
1.3k
Being A Developer After 40
akosma
91
590k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Making the Leap to Tech Lead
cromwellryan
135
9.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
What's in a price? How to price your products and services
michaelherold
246
12k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Optimizing for Happiness
mojombo
379
70k
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!