#!/usr/bin/env zsh set -ex # git pull 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 else ansible-playbook -i inventory fedora.yml fi else ansible-playbook -i inventory osx.yml fi