dotfiles/Makefile

31 lines
623 B
Makefile
Raw Normal View History

.PHONY: deps fedora-deps fedora-bootstrap fedora-release-upgrade gpg keys
CONNECTION ?= local
INVENTORY ?= localhost
ANSIBLE_PYTHON := /usr/bin/python3
AP := ansible-playbook -vv -K -c $(CONNECTION) -i $(INVENTORY), -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) $@