blob: f79af573939f7458ff193c5620c3e6aef1efce4c (
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
34
35
|
BIN ?= .venv/bin
UV ?= uv
# Helper targets (alphabetical order)
.PHONY: edit
edit:
$(BIN)/ansible-vault edit vault.yaml
.PHONY: install
install:
$(UV) sync
$(BIN)/ansible-galaxy collection install -r requirements.yaml
.PHONY: install-pre
install-pre:
cp pre-commit.sh .git/hooks/pre-commit
.PHONY: lint
lint:
$(BIN)/ansible-lint
.PHONY: ping
ping:
$(BIN)/ansible hollyhock -m ping -e @vault.yaml -e "ansible_user=$(or $(ANSIBLE_USER),ansible)"
# Playbook targets (applicable order)
.PHONY: users
users:
$(BIN)/ansible-playbook -e @vault.yaml -e "ansible_user=$(or $(ANSIBLE_USER),ansible)" playbooks/users.yaml
.PHONY: security
security:
$(BIN)/ansible-playbook -e @vault.yaml playbooks/security.yaml
|