-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (56 loc) · 1.88 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
MODULE := dotfiles
BLUE='\033[0;34m'
NC='\033[0m' # No color
TAG := $(shell git describe --tags --always)
showenv:
@echo 'Environment:'
@echo '-----------------------'
@echo 'Module: '${MODULE}
@echo 'Tag: '${TAG}
@echo 'USER:'${USER}
install-ansible:
@echo 'Installing ansible'
@sudo apt update
@sudo apt install software-properties-common -y
@sudo add-apt-repository --yes --update ppa:ansible/ansible
@sudo apt install ansible -y
install:
@echo 'Installing dotfiles from Tag: '${TAG}
@echo '-----------------------'
@echo 'Installing ansible'
@$(MAKE) install-ansible
@echo '-----------------------'
@echo 'Installing ansible dependencies'
@ansible-galaxy install -r requirements.yml
@echo '-----------------------'
@ansible-playbook -u ${USER} ansible-playbooks/setup.yml
test:
@echo 'Testing installation of dotfiles from Tag: '${TAG}
@echo '-----------------------'
@echo 'Installing ansible'
@$(MAKE) install-ansible
@echo '-----------------------'
@echo 'Installing ansible dependencies'
@ansible-galaxy install -r requirements.yml
@echo '-----------------------'
@ansible-playbook -u ${USER}ansible-playbooks/setup.yml --check
local-test:
@echo 'Testing installation of dotfiles from Tag: '${TAG}
@echo '-----------------------'
@echo 'Installing ansible'
@$(MAKE) install-ansible
@echo '-----------------------'
@echo 'Installing ansible dependencies'
@ansible-galaxy install -r requirements.yml
@echo '-----------------------'
@ansible-playbook -u ${USER}ansible-playbooks/setup.yml --check -K
local-install:
@echo 'Installing dotfiles from Tag: '${TAG}
@echo '-----------------------'
@echo 'Installing ansible'
@$(MAKE) install-ansible
@echo '-----------------------'
@echo 'Installing ansible dependencies'
@ansible-galaxy install -r requirements.yml
@echo '-----------------------'
@ansible-playbook -u ${USER} ansible-playbooks/setup.yml -K