19 lines
503 B
Bash
Executable file
19 lines
503 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
set -ex
|
|
|
|
PATH="$PATH:$HOME/.local/bin"
|
|
|
|
if [[ `uname` == "Linux" ]]; then
|
|
if [[ -f /etc/pacman.conf ]]; then
|
|
ansible-playbook -i inventory arch.yml
|
|
elif [[ -f /etc/lsb-release ]]; then
|
|
ansible-playbook -i inventory ubuntu.yml
|
|
elif [[ -f /etc/fedora-release ]]; then
|
|
ansible-playbook -i inventory fedora.yml
|
|
else
|
|
echo "can't autodetermine distro, just running default inventory"
|
|
ansible-playbook -i inventory common.yml
|
|
fi
|
|
else
|
|
ansible-playbook -i inventory osx.yml
|
|
fi
|