43 lines
725 B
Makefile
43 lines
725 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:
|
|
ansible -m ping all
|
|
|
|
.PHONY: setup
|
|
setup:
|
|
ansible -m setup all
|
|
|
|
.PHONY: reboot
|
|
reboot:
|
|
ansible -m reboot all
|
|
|
|
.PHONY: playbook
|
|
playbook:
|
|
ansible-playbook test.yml
|
|
|
|
.PHONY: checkdiff
|
|
checkdiff:
|
|
ansible-playbook test.yml --check --diff
|
|
|