ansible-pull

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>.

Install

All systems
curl cmd.cat/ansible-pull.sh
Debian Debian
apt-get install ansible
Ubuntu
apt-get install ansible
Alpine
apk add ansible
Arch Arch Linux
pacman -S ansible
image/svg+xml Kali Linux
apt-get install ansible
CentOS
yum install ansible
Fedora
dnf install ansible
Windows (WSL2)
sudo apt-get update sudo apt-get install ansible
OS X
brew install ansible
Raspbian
apt-get install ansible
Docker
docker run cmd.cat/ansible-pull ansible-pull powered by Commando

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>.

  • Pull a playbook from a VCS and execute a default local.yml playbook:
    ansible-pull -U repository_url
  • Pull a playbook from a VCS and execute a specific playbook:
    ansible-pull -U repository_url playbook
  • Pull a playbook from a VCS at a specific branch and execute a specific playbook:
    ansible-pull -U repository_url -C branch playbook
  • Pull a playbook from a VCS, specify hosts file and execute a specific playbook:
    ansible-pull -U repository_url -i hosts_file playbook

© tl;dr; authors and contributors