diff --git a/playbooks/launch b/playbooks/launch index 354da95..c67e2e7 100755 --- a/playbooks/launch +++ b/playbooks/launch @@ -27,9 +27,13 @@ elif [[ $(uname) == "Linux" ]]; then elif [[ $(uname) == "Darwin" ]]; then if [[ ! $(command -v brew) ]]; then # Yeah, raw brew install - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + fi + if [[ $(arch) == 'arm64' ]]; then + /opt/homebrew/bin/brew install ansible + else + /usr/local/bin/brew install ansible fi - /usr/local/bin/brew install ansible fi ANSIBLE_PYTHON_INTERPRETER="$(command -v python)"