17 lines
277 B
Bash
Executable file
17 lines
277 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
case "$1" in
|
|
command)
|
|
ansible -i ansible/inventory ft_chatons -a "$2"
|
|
;;
|
|
install)
|
|
ansible-playbook -i ansible/inventory ansible/playbooks/install.yml -K
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|delete|status|logs|restart|scale}"
|
|
exit 1
|
|
esac
|
|
|
|
|
|
|