forked from khuedoan/macos-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 785 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
.POSIX:
default: init run
init:
python3 -m venv .venv \
&& . .venv/bin/activate \
&& pip3 install --upgrade pip \
&& pip3 install -r requirements.txt \
&& ansible-galaxy install -r requirements.yml
/tmp/brew-install.sh:
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh > /tmp/brew-install.sh
chmod +x /tmp/brew-install.sh
/usr/local/bin/brew: /tmp/brew-install.sh
bash -c /tmp/brew-install.sh
run: /usr/local/bin/brew
. .venv/bin/activate \
&& ansible-playbook --ask-become-pass --inventory hosts.ini main.yml
dotfiles:
. .venv/bin/activate \
&& ansible-playbook --inventory hosts.ini --tags dotfiles main.yml
work: /usr/local/bin/brew
. .venv/bin/activate \
&& ansible-playbook --ask-become-pass --inventory hosts.ini work.yml