Add makefile to improve UX
This commit is contained in:
parent
0182f1d2b8
commit
77fd1f2522
26
Makefile
Normal file
26
Makefile
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user