2022-03-13 13:53:15 +01:00
|
|
|
.PHONY: deps bootstrap fedora-deps fedora-release-upgrade fedora-switch-repository gpg keys
|
2022-01-15 12:15:02 +01:00
|
|
|
|
|
|
|
CONNECTION ?= local
|
|
|
|
INVENTORY ?= localhost
|
2022-03-13 13:53:15 +01:00
|
|
|
TAGS ?= all
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
ANSIBLE_PYTHON := /usr/bin/python3
|
2022-03-13 13:53:15 +01:00
|
|
|
AP := ansible-playbook -vv -K -c $(CONNECTION) -i $(INVENTORY), -e ansible_python_interpreter=$(ANSIBLE_PYTHON) --tags $(TAGS) $(AP_ARGS)
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
deps:
|
|
|
|
ansible-galaxy collection install community.general
|
|
|
|
|
2022-03-13 13:53:15 +01:00
|
|
|
bootstrap:
|
|
|
|
$(AP) playbooks/bootstrap.yml
|
|
|
|
|
2020-10-31 15:54:39 +01:00
|
|
|
# Fedora
|
2020-10-11 15:09:15 +02:00
|
|
|
fedora-deps:
|
2020-10-31 15:51:16 +01:00
|
|
|
sudo dnf install -y ansible ansible-collection-community-general
|
2020-10-11 15:09:15 +02:00
|
|
|
|
2020-10-31 15:54:39 +01:00
|
|
|
fedora-release-upgrade:
|
|
|
|
$(AP) playbooks/fedora_upgrade.yml
|
|
|
|
|
2022-03-13 13:53:15 +01:00
|
|
|
REMOTE ?= local
|
|
|
|
fedora-switch-repository:
|
|
|
|
$(AP) -e source=$(REMOTE) playbooks/fedora_repository.yml
|
|
|
|
|
2020-10-31 15:54:39 +01:00
|
|
|
# Scripts
|
2020-10-11 15:09:15 +02:00
|
|
|
gpg:
|
2020-10-11 20:20:56 +02:00
|
|
|
bash scripts/generate_gpg.sh
|
2020-10-11 20:43:26 +02:00
|
|
|
|
|
|
|
keys:
|
2020-10-17 13:08:55 +02:00
|
|
|
bash scripts/export_keys.sh
|
2020-11-12 21:15:52 +01:00
|
|
|
|
2022-03-13 13:53:15 +01:00
|
|
|
# Catch any other playbook
|
2020-11-12 21:15:52 +01:00
|
|
|
%.yml:
|
|
|
|
$(AP) $@
|