-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 814 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 814 Bytes
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
default:
@echo "You must specify an action."
@echo " - deploy: Initiate deployment"
@echo " - scaffold: Initialize the shared/ and private/ directories"
scaffold:
mkdir -p shared private
ssh-keygen -N '' -f private/ansible.key
cp private/ansible.key.pub shared/authorized_keys
touch shared/yubikey_mappings
cp examples/inventory examples/yubikey_mappings shared
deploy: main web slackirc etherpad
main:
ansible-playbook -i shared/inventory playbooks/main.yml --private-key private/ansible.key
web:
ansible-playbook -i shared/inventory playbooks/web.yml --private-key private/ansible.key
slackirc:
ansible-playbook -i shared/inventory playbooks/slackirc.yml --private-key private/ansible.key
etherpad:
ansible-playbook -i shared/inventory playbooks/etherpad.yml --private-key private/ansible.key