Interview Q&A · questions with model answers

Ansible Interview Questions

Part of the study plan for: DevOps Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Write an Ansible playbook that installs Nginx, deploys its configuration, enables the service and restarts it only when the configuration changes.

    Install the package, template the config with validation, notify a restart handler from the template task, and make sure the service is enabled and started. The handler only runs when the template…

Was this page helpful?

Report a mistake