ansible-pull -U https://github.com/example/infra.git site.yml

Category: IaC & Automation

ansible-pull -U https://github.com/example/infra.git site.yml

Pull a playbook from git and run it locally

Clones the infra repository from git and immediately runs site.yml on the local machine, which is how Ansible works in pushless setups like cron-driven node self-configuration. Every host pulls the same repo and applies it to itself. Related: ansible-playbook site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.