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

You want an Ansible run to execute on the target host itself, pulling config from Git, instead of pushing from a controller.

IntermediateScenarioPerformance, Testing and CI/CD
Answer

Situation read → Pull model for autoscaled or firewalled hosts.

What I'd do → Use ansible-pull from cron or a systemd timer, or from user-data at boot.

ansible-pull -U https://git.example.com/infra/ansible.git -C main -i localhost, local.yml

Why → Hosts configure themselves and scale without a central push.

Interview tip → You lose central visibility, so report results to a webhook or use AWX callbacks.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD