Add tags for components and Makefile targets

This commit is contained in:
2020-03-03 17:31:48 +01:00
parent 458a41084e
commit 33244c9726
3 changed files with 254 additions and 263 deletions

View File

@@ -3,10 +3,23 @@ requirements = requirements.txt
activate = . $(venv)/bin/activate
pip = pip
ansible = venv/bin/ansible-playbook
ansible_run = $(activate) && ansible-playbook --inventory localhost, --diff --verbose ./playbook.yml
.PHONY: all
install: $(ansible)
$(activate) && ansible-playbook --inventory localhost, --diff --verbose ./playbook.yml
$(ansible_run)
.PHONY: update
update: $(ansible)
$(ansible_run) --tags update_system
.PHONY: packages
packages: $(ansible)
$(ansible_run) --tags packages
.PHONY: dotfiles
dotfiles: $(ansible)
$(ansible_run) --tags dotfiles
.PHONY: clean
clean: