infra/deploy.sh

11 lines
282 B
Bash
Raw Normal View History

2020-04-11 00:19:03 +00:00
#!/bin/bash
if [[ $1 = "test" ]]; then
2020-04-15 13:28:27 +00:00
ansible-playbook --check -i hosts recette.yml
elif [[ $1 = "local" ]]; then
ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 \
2020-04-15 13:28:27 +00:00
recette.yml -i hosts
else
2020-04-15 13:28:27 +00:00
ansible-playbook -i hosts recette.yml
fi