-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 777 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
all: run
PYTHON3 := $(shell command -v python3.7 || command -v python3)
~/bin/starship:
./tools/install-starship.sh
.PHONY: venv
venv: Makefile requirements.txt
# https://github.com/python-poetry/poetry/issues/536#issuecomment-498308796
python3 $(HOME)/.poetry/bin/poetry install
.PHONY: galaxy
galaxy:
$(HOME)/.poetry/bin/poetry run ansible-galaxy install geerlingguy.homebrew
.PHONY: run
run: export ANSIBLE_NOCOWS = 1
run: venv galaxy
# change to -l nikon to run on personal devbox
$(HOME)/.poetry/bin/poetry run ansible-playbook ansible/main.yml -i hosts -l localhost --ask-become-pass
.PHONY: dotfiles
dotfiles: export ANSIBLE_NOCOWS = 1
dotfiles: venv ~/bin/starship
$(HOME)/.poetry/bin/poetry run ansible-playbook ansible/dotfiles.yml -i hosts -l localhost