blob: 8cdfaca9af3628d749c6d89c43ceceefe6f536d2 (
plain)
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
|
#!/usr/bin/make -f
# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
#
# SPDX-License-Identifier: AGPL-3.0-only
.PHONY: check staging prod lint staging-fresh prod-fresh
check:
make lint
make staging
staging:
ansible-playbook --forks 1 --inventory inventory/staging.ini playbook.yaml \
--diff
prod:
ansible-playbook --forks 1 --inventory inventory/prod.ini playbook.yaml \
--diff
lint:
precious --ascii lint --all
staging-fresh:
~/Documents/libcloud/recreate xmpp-continuous-nonprod
ANSIBLE_SSH_ARGS="-F /tmp/early_ssh_config" ansible-playbook --forks 1 \
--inventory inventory/staging.ini playbook.yaml
prod-fresh:
echo "You are about to recreate PROD. Sleeping for 60s to let this sink in"
sleep 60
~/Documents/libcloud/recreate xmpp-prod
ANSIBLE_SSH_ARGS="-F /tmp/early_ssh_config" ansible-playbook --forks 1 \
--inventory inventory/prod.ini playbook.yaml
|