Add check and diff support

This commit is contained in:
Jason Rothstein 2024-03-16 21:08:50 -05:00
parent f9c2559f39
commit 9dcbb0d0af

View File

@ -8,10 +8,18 @@ galaxy: role collection
role: role:
ansible-galaxy role install -r ./roles/requirements.yml ansible-galaxy role install -r ./roles/requirements.yml
.PHONY: roleforce
roleforce:
ansible-galaxy role install -r ./roles/requirements.yml --force
.PHONY: collection .PHONY: collection
collection: collection:
ansible-galaxy collection install -r ./collections/requirements.yml ansible-galaxy collection install -r ./collections/requirements.yml
.PHONY: collectionforce
collectionforce:
ansible-galaxy collection install -r ./collections/requirements.yml --force
.PHONY: ping .PHONY: ping
ping: ping:
ansible -m ping all ansible -m ping all
@ -28,3 +36,7 @@ reboot:
playbook: playbook:
ansible-playbook test.yml ansible-playbook test.yml
.PHONY: checkdiff
checkdiff:
ansible-playbook test.yml --check --diff