ansible-pull Command Examples

Pull ansible playbooks from a VCS repo and executes them for the local host. More information: https://docs.ansible.com/ansible/latest/cli/ansible-pull.html.

ansible-pull -U {{repository_url}}

ansible-pull -U {{repository_url}} {{playbook}}

ansible-pull -U {{repository_url}} -C {{branch}} {{playbook}}

ansible-pull -U {{repository_url}} -i {{hosts_file}} {{playbook}}