summaryrefslogtreecommitdiff
path: root/Makefile
blob: d131e5e5eea988ff1ed3d1b8438fa8672690bf5a (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/hosts.yaml --limit staging \
		playbook.yaml --diff

prod:
	ansible-playbook --forks 1 --inventory inventory/hosts.yaml --limit prod \
		playbook.yaml --diff

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

lint:
	precious --ascii lint --all