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.
More on Performance, Testing and CI/CD
A playbook that touches 200 hosts takes 40 minutes. Where do you start tuning?IntermediateYou install 15 packages with a loop and it is slow.BeginnerHow would you test a role in CI before it reaches production?IntermediateWhat would a Molecule `verify.yml` check for an Nginx role?IntermediateMolecule's idempotence step fails. How do you find the offending task?IntermediateDesign a CI pipeline for an Ansible repo.Advanced