From 30ba9364ccc7ffea5f5ba17d2e1fc8d1ec75f6fd Mon Sep 17 00:00:00 2001 From: Pavlos Tzianos Date: Sun, 17 Nov 2019 20:21:12 +0100 Subject: [PATCH] Add Makefile for automating Ansible tasks --- ansible/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ansible/Makefile diff --git a/ansible/Makefile b/ansible/Makefile new file mode 100644 index 0000000..e7a84e9 --- /dev/null +++ b/ansible/Makefile @@ -0,0 +1,18 @@ +ANSIBLE_POETRY=poetry +EXTRA_ARGS= + +ansible-setup: + $(ANSIBLE_POETRY) install + +deployment: + $(ANSIBLE_POETRY) run ansible-playbook -i reclass complete-setup.yml --become $(EXTRA_ARGS) + +api-deployment: EXTRA_ARGS="--tags=api" +api-deployment: deployment + +rabbitmq-deployment: EXTRA_ARGS="--tags=rabbitmq" +rabbitmq-deployment: deployment + +common-deployment: EXTRA_ARGS="--tags=common" +common-deployment: deployment +