Files
2026-08-01 20:16:55 -05:00

43 lines
760 B
Makefile

.PHONY: all
all: galaxy playbook
.PHONY: galaxy
galaxy: role collection
.PHONY: role
role:
ansible-galaxy role install -r ./roles/requirements.yml
.PHONY: roleforce
roleforce:
ansible-galaxy role install -r ./roles/requirements.yml --force
.PHONY: collection
collection:
ansible-galaxy collection install -r ./collections/requirements.yml
.PHONY: collectionforce
collectionforce:
ansible-galaxy collection install -r ./collections/requirements.yml --force
.PHONY: ping
ping: galaxy
ansible -m ping all
.PHONY: setup
setup: galaxy
ansible -m setup all
.PHONY: reboot
reboot: galaxy
ansible -m reboot all
.PHONY: playbook
playbook: galaxy
ansible-playbook test.yml
.PHONY: checkdiff
checkdiff: galaxy
ansible-playbook test.yml --check --diff