Matej Focko
2fa41c33d3
- Adds playbook for switching repositories - Adds make target for any playbook Signed-off-by: Matej Focko <me@mfocko.xyz>
27 lines
545 B
Makefile
27 lines
545 B
Makefile
.PHONY: fedora-deps deps fedora-bootstrap gpg keys
|
|
|
|
ANSIBLE_PYTHON := /usr/bin/python3
|
|
AP := ansible-playbook -vv -K -c local -i localhost, -e ansible_python_interpreter=$(ANSIBLE_PYTHON)
|
|
|
|
deps:
|
|
ansible-galaxy collection install community.general
|
|
|
|
# Fedora
|
|
fedora-deps:
|
|
sudo dnf install -y ansible ansible-collection-community-general
|
|
|
|
fedora-bootstrap:
|
|
$(AP) playbooks/fedora.yml
|
|
|
|
fedora-release-upgrade:
|
|
$(AP) playbooks/fedora_upgrade.yml
|
|
|
|
# Scripts
|
|
gpg:
|
|
bash scripts/generate_gpg.sh
|
|
|
|
keys:
|
|
bash scripts/export_keys.sh
|
|
|
|
%.yml:
|
|
$(AP) $@
|