-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (25 loc) · 951 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
30
31
32
33
34
35
36
.phony: venv roles production ALL letsencrypt
ALL: venv roles .vagrant
.vagrant:
VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-hostsupdater
touch .vagrant
venv: .venv/bin/activate
.venv/bin/activate: requirements.txt
test -d .venv || virtualenv .venv
.venv/bin/pip install --upgrade pip virtualenv
.venv/bin/pip install -Ur requirements.txt
touch .venv/bin/activate
roles/external: venv roles/requirements.yml
.venv/bin/ansible-galaxy install -r roles/requirements.yml -p roles/external
roles: roles/external
production: venv roles
.venv/bin/ansible-playbook site.yml
letsencrypt: venv roles
.venv/bin/ansible-playbook update-ssl-certs.yml
#Just updates the SSH keys for the deploy user on all hosts.
ssh: venv roles
.venv/bin/ansible-playbook deploy_user.yml
retry: venv roles site.retry
.venv/bin/ansible-playbook site.yml -l @site.retry
clean:
rm -rf .venv roles/external site.retry .vagrant