2022-01-15 12:15:02 +01:00
|
|
|
.PHONY: deps fedora-deps fedora-bootstrap fedora-release-upgrade gpg keys
|
|
|
|
|
|
|
|
CONNECTION ?= local
|
|
|
|
INVENTORY ?= localhost
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
ANSIBLE_PYTHON := /usr/bin/python3
|
2022-01-15 12:15:02 +01:00
|
|
|
AP := ansible-playbook -vv -K -c $(CONNECTION) -i $(INVENTORY), -e ansible_python_interpreter=$(ANSIBLE_PYTHON)
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
deps:
|
|
|
|
ansible-galaxy collection install community.general
|
|
|
|
|
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-bootstrap:
|
|
|
|
$(AP) playbooks/fedora.yml
|
|
|
|
|
|
|
|
fedora-release-upgrade:
|
|
|
|
$(AP) playbooks/fedora_upgrade.yml
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
%.yml:
|
|
|
|
$(AP) $@
|