ansible-config/deploy.sh

7 lines
212 B
Bash
Raw Normal View History

2015-08-31 20:38:21 +02:00
#!/usr/bin/env bash
2015-08-31 20:35:52 +02:00
if [ $# -gt 0 ]; then
2015-11-14 14:06:36 +01:00
ansible-playbook site.yml -i srv02.inventory --sudo --ask-sudo-pass --tags $1
2015-08-31 20:35:52 +02:00
else
2015-11-14 14:06:36 +01:00
ansible-playbook site.yml -i srv02.inventory --sudo --ask-sudo-pass
2015-08-31 20:35:52 +02:00
fi