-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
33 lines (21 loc) · 894 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TAGS ?= all
all: provision
install: install-xcode install-ansible install-repo
install-ansible: /usr/local/bin/pip /usr/local/bin/ansible-playbook
install-xcode:
xcode-select -p 2>&1 >/dev/null || xcode-select --install
if [ "`xcode-select -p`" != "/Library/Developer/CommandLineTools" ]; then sudo xcode-select -switch /Library/Developer/CommandLineTools; fi
install-repo: ./roles ./geerlingguy.mac-dev-playbook/main.yml
provision:
ansible-playbook main.yml -i geerlingguy.mac-dev-playbook/inventory -K --tags="$(TAGS)"
clean:
rm -rf ./roles
.PHONY: all install install-ansible install-xcode install-repo provision clean
./geerlingguy.mac-dev-playbook/main.yml:
git submodule update --init --recursive
/usr/local/bin/pip:
sudo easy_install pip
/usr/local/bin/ansible-playbook: /usr/local/bin/pip
sudo pip install ansible
./roles:
ansible-galaxy install -r requirements.yml