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 11. What is the purpose of the 'become' keyword in Ansible?

The 'become' keyword is used to execute tasks with escalated privileges, usually by using 'sudo' or 'su'. It is equivalent to 'sudo' in Unix-like systems.

Example:

become: yes

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 12. Explain Ansible facts.

Ansible facts are pieces of system information collected during playbook execution. They provide details about the target system, such as hardware, network, and OS.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 13. How can you execute only a specific task from an Ansible playbook?

You can use the '--tags' option followed by the task tag when running the 'ansible-playbook' command to execute specific tasks.

Example:

ansible-playbook site.yml --tags deploy

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 14. What is the purpose of the 'notify' keyword in Ansible?

The 'notify' keyword is used to trigger handlers. It specifies a task or a list of tasks to be executed if the associated task results in a change.

Example:

notify: restart apache

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 15. How can you check the syntax of an Ansible playbook without executing it?

You can use the 'ansible-playbook' command with the '--syntax-check' option to validate the syntax of a playbook without running it.

Example:

ansible-playbook site.yml --syntax-check

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.