summaryrefslogtreecommitdiff
path: root/Makefile
blob: de74f4f8d03a88c6f1e2db3f1b1bd7f4a8204a00 (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
#!/usr/bin/make -f
# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

.PHONY: check staging prod transport lint

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 --inventory \
		inventory/transport.ini playbook.yaml --diff

transport:
	ansible-playbook --forks 1 --inventory inventory/transport.ini \
		playbook.yaml --diff

lint:
	precious --ascii lint --all