Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Ansible perguntas e respostas de entrevista

Diferencas relacionadas

Ansible vs TerraformAnsible vs Puppet

Pergunta 26. What is the purpose of the 'delegate_to' keyword in Ansible?

The 'delegate_to' keyword is used to run a task on a different host than the one specified in the playbook. It is useful for offloading tasks to specific hosts.

Example:

delegate_to: backup_server

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 27. Explain Ansible dynamic variables.

Dynamic variables in Ansible are variables whose values are generated or fetched dynamically during playbook execution. They provide flexibility in configuration.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 28. How can you check if a file or directory exists in Ansible?

The 'stat' module in Ansible can be used to check the existence of a file or directory. The result can be checked using the 'stat.exists' attribute.

Example:

stat:
  path: /path/to/file.txt

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 29. Explain Ansible Tower Workflows.

Ansible Tower Workflows allow the creation of complex job workflows by combining multiple playbooks and job templates. They provide a visual representation of the workflow.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 30. How can you override variables in Ansible?

Variables in Ansible can be overridden at different levels, including playbooks, inventory files, and the command line. The precedence order determines which value is used.

Example:

ansible-playbook site.yml -e 'variable_name=new_value'

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.