Add makefile to improve UX

This commit is contained in:
Jason Rothstein 2024-03-15 22:16:55 -05:00
parent 0182f1d2b8
commit 77fd1f2522

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
.PHONY: all
all: galaxy playbook
.PHONY: galaxy
galaxy: role collection
.PHONY: role
role:
ansible-galaxy role install -r ./roles/requirements.yml
.PHONY: collection
collection:
ansible-galaxy collection install -r ./collections/requirements.yml
.PHONY: ping
ping:
ansible -m ping all
.PHONY: setup
setup:
ansible -m setup all
.PHONY: playbook
playbook:
ansible-playbook test.yml