- open a terminal
- copy/paste the
_runit.sh
script into a file (chmod +x
it and run it) or just run it line by line
Last active
December 28, 2020 23:47
-
-
Save mcclory/a1e4fbcd6b24d34c40ecc82a3bdfc0c2 to your computer and use it in GitHub Desktop.
Mac Dev Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# equivalent of `xcode-select --install` | |
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; | |
PROD=$(softwareupdate -l | | |
grep "\*.*Command Line" | | |
head -n 1 | awk -F"*" '{print $2}' | | |
sed -e 's/^ *//' | | |
tr -d '\n') | |
softwareupdate -i "$PROD" --verbose | |
rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
curl -s https://bootstrap.pypa.io/get-pip.py | python | |
pip3 install ansible | |
curl https://gist.githubusercontent.com/mcclory/a1e4fbcd6b24d34c40ecc82a3bdfc0c2/raw/598d749d4ff08527af6063d12ab8f10e7200ef83/playbook.yaml --output playbook.yaml | |
ansible-playbook playbook.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# sudo ansible-playbook <name of this file>.yaml | |
- hosts: 127.0.0.1 | |
connection: local | |
vars: | |
brew_cask_packages: | |
- atom | |
- docker | |
- google-chrome | |
- google-drive | |
- slack | |
- vagrant | |
- vagrant-manager | |
- virtualbox | |
- virtalbox-extension-pack | |
- visual-studio-code | |
- java | |
- zoomus | |
- appcleaner | |
- snagit | |
brew_packages: | |
- autoconf | |
- bash-completion | |
- boot2docker | |
- consul | |
- docker-compose | |
- git | |
- git-lfs | |
- jq | |
- nmap | |
- openssl | |
- packer | |
- python3 | |
- ssh-copy-id | |
- terraform | |
- terraform-inventory | |
- terraform-provisioner-ansible | |
- wget | |
- curl | |
- pianobar | |
- sqlite | |
- mysql-connector-c | |
- autoconf | |
- kubernetes-cli | |
- kubernetes-helm | |
tasks: | |
- name: Installing Homebrew Cask Packages | |
homebrew_cask: | |
name: "{{ brew_cask_packages }}" | |
state: present | |
register: result | |
until: result is successful | |
- name: Installing Homebrew Packages | |
homebrew: | |
name: "{{ brew_packages }}" | |
state: present | |
register: result | |
until: result is successful | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment