-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 1.29 KB
/
Makefile
File metadata and controls
42 lines (34 loc) · 1.29 KB
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
38
39
40
41
42
DOCKER_DATA_ROOT ?= /var/lib/docker
.PHONY: init
init:
pipenv install
.PHONY: desktop
desktop:
pipenv run ansible-playbook --extra-vars docker_data_root=$(DOCKER_DATA_ROOT) playbook-desktop.yml
.PHONY: unifi
unifi:
pipenv run ansible-playbook playbook-unifi.yml
# Grabs the latest changes from github.com/aikchar/new-mac from its bash directory
# and pushes them to the role
.PHONY: bash-refresh
bash-refresh: | /tmp/new-mac
cp /tmp/new-mac/bash/env roles/bash/files/env
cp /tmp/new-mac/bash/interactive roles/bash/files/interactive
cp /tmp/new-mac/bash/login roles/bash/files/login
cp /tmp/new-mac/bash/logout roles/bash/files/logout
cp /tmp/new-mac/bash/bash_logout roles/bash/files/bash_logout
cp /tmp/new-mac/bash/bash_profile roles/bash/files/bash_profile
cp /tmp/new-mac/bash/bashrc roles/bash/files/bashrc
cp /tmp/new-mac/bash/profile roles/bash/files/profile
/tmp/new-mac:
(cd /tmp/new-mac && git pull) || git clone https://github.com/aikchar/new-mac.git /tmp/new-mac
# -----
# DEV ONLY
.PHONY: git-ignore-changes
git-ignore-changes:
git update-index --assume-unchanged ./ansible.cfg
git update-index --assume-unchanged ./hosts
.PHONY: git-stop-ignore-changes
git-stop-ignore-changes:
git update-index --no-assume-unchanged ./ansible.cfg
git update-index --no-assume-unchanged ./hosts