1
+ ANSIBLE_VAULT_FLAGS = --vault-password-file files/bw_vault_password.sh
1
2
CERTBOT_SCRIPT = files/certbot.sh
2
3
CERTBOT_WORKDIR = files/certbot.d
4
+ EDITOR = code --wait
5
+
3
6
# Run pre-commit checks on all files
4
7
check :
5
8
pre-commit run --all-files
@@ -10,6 +13,10 @@ envsetup:
10
13
ansible-galaxy collection install -U -r requirements.yml
11
14
pre-commit install
12
15
16
+ # Edit Ansible Vault
17
+ vaultedit :
18
+ env EDITOR=" $( EDITOR) " ansible-vault edit $(ANSIBLE_VAULT_FLAGS ) vars/secrets.yml
19
+
13
20
# # The following tasks run the certbot helper script
14
21
# # Naming: certbot-(issue|renew)
15
22
@@ -24,43 +31,43 @@ certbot-renew:
24
31
# # Order in Makefile: all, groups, nodes
25
32
26
33
setup-all :
27
- ansible-playbook setup.yml
34
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS )
28
35
29
36
setup-guests :
30
- ansible-playbook setup.yml --limit guests
37
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit guests
31
38
32
39
setup-proxmox :
33
- ansible-playbook setup.yml --limit proxmox
40
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit proxmox
34
41
35
42
setup-containers :
36
- ansible-playbook setup.yml --limit v-containers
43
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit v-containers
37
44
38
45
setup-postgres :
39
- ansible-playbook setup.yml --limit postgres
46
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit postgres
40
47
41
48
setup-pihole :
42
- ansible-playbook setup.yml --limit pihole
49
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit pihole
43
50
44
51
setup-storage :
45
- ansible-playbook setup.yml --limit storage
52
+ ansible-playbook setup.yml $( ANSIBLE_VAULT_FLAGS ) --limit storage
46
53
47
54
upgrade-all :
48
- ansible-playbook upgrade.yml
55
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS )
49
56
50
57
upgrade-guests :
51
- ansible-playbook upgrade.yml --limit guests
58
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit guests
52
59
53
60
upgrade-proxmox :
54
- ansible-playbook upgrade.yml --limit proxmox
61
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit proxmox
55
62
56
63
upgrade-containers :
57
- ansible-playbook upgrade.yml --limit v-containers
64
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit v-containers
58
65
59
66
upgrade-postgres :
60
- ansible-playbook upgrade.yml --limit postgres
67
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit postgres
61
68
62
69
upgrade-pihole :
63
- ansible-playbook upgrade.yml --limit pihole
70
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit pihole
64
71
65
72
upgrade-storage :
66
- ansible-playbook upgrade.yml --limit storage
73
+ ansible-playbook upgrade.yml $( ANSIBLE_VAULT_FLAGS ) --limit storage
0 commit comments