Interview Prep/Ansible/Performance, Testing and CI/CD

You want a nightly job that runs a safe subset of tasks: health checks only.

BeginnerScenarioPerformance, Testing and CI/CD
Answer

Situation read → Tagged read-only tasks.

What I'd do →

- ansible.builtin.command: df -h /
  changed_when: false
  tags: [healthcheck, never]
ansible-playbook site.yml --tags healthcheck

Why → The special tag never keeps tasks out of normal runs unless you ask for their other tag.

Interview tip → always runs every time; never runs only if explicitly selected.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD