From 77fd1f25221d8ffc966ba425cd1a82edd7ccc6f9 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Fri, 15 Mar 2024 22:16:55 -0500 Subject: [PATCH] Add makefile to improve UX --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5264b4c --- /dev/null +++ b/Makefile @@ -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 +