ansible-playbook
Execute tasks defined in playbook on remote machines over SSH. More information: <https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
Install
- All systems
-
curl cmd.cat/ansible-playbook.sh
- Debian
-
apt-get install ansible
- Ubuntu
-
apt-get install ansible
- Alpine
-
apk add ansible
- Arch Linux
-
pacman -S ansible
- 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
- Dockerfile
- dockerfile.run/ansible-playbook
- Docker
-
docker run cmd.cat/ansible-playbook ansible-playbook
powered by Commando
Execute tasks defined in playbook on remote machines over SSH. More information: <https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
-
Run tasks in playbook:
ansible-playbook playbook
-
Run tasks in playbook with custom host inventory:
ansible-playbook playbook -i inventory_file
-
Run tasks in playbook with extra variables defined via the command-line:
ansible-playbook playbook -e "variable1=value1 variable2=value2"
-
Run tasks in playbook with extra variables defined in a JSON file:
ansible-playbook playbook -e "@variables.json"
-
Run tasks in playbook for the given tags:
ansible-playbook playbook --tags tag1,tag2
-
Run tasks in a playbook starting at a specific task:
ansible-playbook playbook --start-at task_name
© tl;dr; authors and contributors