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|--url]}} {{repository_url}}

ansible-pull {{[-U|--url]}} {{repository_url}} {{playbook}}

ansible-pull {{[-U|--url]}} {{repository_url}} {{[-C|--checkout]}} {{branch}} {{playbook}}

ansible-pull {{[-U|--url]}} {{repository_url}} {{[-i|--inventory-file]}} {{hosts_file}} {{playbook}}