2020-04-11 00:19:03 +00:00
|
|
|
#!/bin/bash
|
2020-04-11 23:00:17 +00:00
|
|
|
|
|
|
|
if [[ $1 = "test" ]]; then
|
2020-04-15 13:28:27 +00:00
|
|
|
ansible-playbook --check -i hosts recette.yml
|
2020-04-11 23:00:17 +00:00
|
|
|
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
|
2020-04-11 23:00:17 +00:00
|
|
|
else
|
2020-04-15 13:28:27 +00:00
|
|
|
ansible-playbook -i hosts recette.yml
|
2020-04-11 23:00:17 +00:00
|
|
|
fi
|