-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1 KB
/
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
34
35
36
37
.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
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
/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
install:
. .venv/bin/activate \
&& ansible-playbook --ask-become-pass --inventory hosts.ini main.yml
winlocal:
. .venv/bin/activate \
&& ansible-playbook --inventory hosts.ini --limit 52.163.185.85 main.yml -vvvvv
dotfiles:
. .venv/bin/activate \
&& ansible-playbook --inventory hosts.ini --tags dotfiles main.yml
work:
ansible-playbook --ask-become-pass --inventory hosts.ini work.yml