# Ansible & Configuration Management (DevOps) > Playbooks, inventory, módulos, roles, handlers, idempotência, provisioning vs configuration, immutable infrastructure - 20 perguntas de entrevista - Mid-Level - [Perguntas de entrevista: DevOps](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista.md) ## 1. O que é um playbook do Ansible? **Resposta** Um playbook é um arquivo YAML que define uma série de tarefas para executar em hosts de destino. Constitui a unidade básica para orquestrar configurações no Ansible. Os playbooks permitem descrever o estado desejado dos sistemas de forma declarativa, facilitando a automação repetível e a gestão de configuração em larga escala. ## 2. Qual é o papel de um arquivo inventory no Ansible? **Resposta** O arquivo inventory lista todos os hosts nos quais o Ansible pode executar tarefas. Pode estar no formato INI ou YAML e permite agrupar hosts por categorias lógicas. O inventory também pode definir variáveis específicas por host ou por grupo, facilitando a gestão diferenciada de configurações com base nos ambientes ou papéis dos servidores. ## 3. O que representa um módulo no Ansible? **Resposta** Um módulo é uma unidade de código reutilizável que executa uma ação específica em um sistema de destino. O Ansible fornece centenas de módulos integrados para gerenciar pacotes, arquivos, serviços, usuários e muito mais. Os módulos são idempotentes por design, o que significa que podem ser executados várias vezes sem alterar o resultado final se o estado desejado já tiver sido alcançado. ## Mais 17 perguntas disponiveis - Como o Ansible se conecta aos hosts de destino por padrão? - O que significa o princípio de idempotência no Ansible? Cadastre-se gratis: https://sharpskill.dev/pt/login ## Outros temas de entrevista DevOps - [Controle de versão & Git](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/version-control-git.md): 20 perguntas, Junior - [Fundamentos do Linux](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/linux-fundamentals.md): 22 perguntas, Junior - [Shell Scripting & Bash](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/shell-scripting-bash.md): 20 perguntas, Mid-Level - [Fundamentos de Redes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/networking-basics.md): 22 perguntas, Junior - [Fundamentos do Docker](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/docker-fundamentals.md): 24 perguntas, Junior - [Fundamentos de CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ci-cd-fundamentals.md): 18 perguntas, Junior - [GitHub Actions](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/github-actions.md): 22 perguntas, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitlab-ci.md): 22 perguntas, Mid-Level - [Jenkins](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/jenkins.md): 22 perguntas, Mid-Level - [Fundamentos do Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-basics.md): 26 perguntas, Mid-Level - [Networking de Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-networking.md): 24 perguntas, Mid-Level - [Kubernetes Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-advanced.md): 24 perguntas, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ingress-api-gateway.md): 20 perguntas, Mid-Level - [Fundamentos do Terraform](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-basics.md): 22 perguntas, Mid-Level - [Terraform Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-advanced.md): 22 perguntas, Mid-Level - [Fundamentos do AWS](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/aws-essentials.md): 26 perguntas, Mid-Level - [Fundamentos do Azure](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/azure-fundamentals.md): 22 perguntas, Mid-Level - [Fundamentos do GCP](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gcp-fundamentals.md): 22 perguntas, Mid-Level - [Monitoramento e Prometheus](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/monitoring-prometheus.md): 22 perguntas, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/logging-elk.md): 20 perguntas, Mid-Level - [Alerting e Incident Response](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/alerting-incident-response.md): 20 perguntas, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cloud-identity-secrets.md): 22 perguntas, Mid-Level - [Segurança de Pipelines CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cicd-pipeline-security.md): 20 perguntas, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/helm-kubernetes.md): 20 perguntas, Mid-Level - [Segurança Runtime e Cluster](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/runtime-cluster-security.md): 24 perguntas, Senior - [Container Supply Chain Security](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/container-supply-chain.md): 22 perguntas, Senior - [Service Mesh & Istio](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/service-mesh-istio.md): 24 perguntas, Senior - [GitOps & ArgoCD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitops-argocd.md): 22 perguntas, Senior - [Progressive Delivery](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/progressive-delivery.md): 20 perguntas, Senior - [Observabilidade Distribuída](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/observability-distributed.md): 22 perguntas, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/disaster-recovery.md): 20 perguntas, Senior - [Otimização de Desempenho](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/performance-optimization.md): 22 perguntas, Senior - [Otimização de Custos na Nuvem](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/infrastructure-cost.md): 20 perguntas, Senior - [Princípios de SRE](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/sre-principles.md): 24 perguntas, Senior - [Chaos Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/chaos-engineering.md): 20 perguntas, Senior - [Platform Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/platform-engineering.md): 22 perguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ansible-configuration