Interview Prep/Ansible/AWX, Cloud and Large-Scale Operations

You need to rotate TLS certificates on 200 hosts without downtime.

IntermediateScenarioAWX, Cloud and Large-Scale Operations
Answer

Situation read → Rolling cert update.

What I'd do → Distribute with copy (vaulted or fetched from a secret store), validate, reload service (not restart), serial: 10%, and verify with openssl s_client or uri.

- ansible.builtin.copy:
    src: "{{ cert_src }}"
    dest: /etc/ssl/app.pem
    mode: "0640"
  notify: Reload nginx

Why → Reload swaps certs without dropping connections.

Interview tip → Better: automate renewal (ACME) and let Ansible only distribute.

All Ansible questions Roadmap: Ansible

More on AWX, Cloud and Large-Scale Operations