-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
57 lines (41 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
56
57
export PATH := justfile_directory() + "/env/bin:" + env_var("PATH")
# Recipes
@default:
just --list
### Run/Builds
build_proxmox:
ansible-playbook -b proxmox.yml --limit pve -c paramiko
build +HOST:
ansible-playbook -b run.yml --limit {{ HOST }} -c paramiko
build_all:
ansible-playbook -b run.yml -c paramiko
configure +HOST:
ansible-playbook -b services.yml --limit {{ HOST }} -c paramiko
### Updates
# update:
# ansible-playbook update.yml
# docker:
# ansible-playbook docker.yml
# test:
# ansible-playbook -b test.yml
### Vault
decrypt:
ansible-vault decrypt vars/vault.yml
encrypt:
ansible-vault encrypt vars/vault.yml
### Lint
yamllint:
yamllint -s .
ansible-lint: yamllint
#!/usr/bin/env bash
ansible-lint .
ansible-playbook run.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:
@chmod +x prereqs.sh git-init.sh
@./prereqs.sh
@echo "Ansible Vault pre-hook script setup and vault password set"