-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
justfile
55 lines (40 loc) · 1.13 KB
/
justfile
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
export PATH := justfile_directory() + "/env/bin:" + env_var("PATH")
# Recipes
@default:
just --list
### Run/Builds
build_adonalsium:
ansible-playbook -u root -b run.yml --limit adonalsium --ask-pass
build_ishap:
ansible-playbook -u root -b run.yml --limit ishap --ask-pass
build_virtuosity:
ansible-playbook -u geoff -b run.yml --limit virtuosity --ask-pass --ask-become-pass
build +HOST:
ansible-playbook -b run.yml --limit {{ HOST }}
### Updates
update:
ansible-playbook update.yml
docker:
ansible-playbook docker.yml
test:
ansible-playbook -b test.yml
### Vault
decrypt:
ansible-vault decrypt vars/vault.yaml
encrypt:
ansible-vault encrypt vars/vault.yaml
### Lint
yamllint:
yamllint -s .
ansible-lint: yamllint
#!/usr/bin/env bash
ansible-lint .
ansible-playbook run.yml update.yml bootstrap.yml docker.yml --syntax-check
### Bootstrap/Setup
bootstrap_lxc:
ansible-playbook -b bootstrap.yml --limit lxc ambition
bootstrap +HOST:
ansible-playbook -b bootstrap.yml --limit {{ HOST }} --ask-pass --ask-become-pass
install:
@./prereqs.sh
@echo "Ansible Vault pre-hook script setup and vault password set"