Skip to content

Commit

Permalink
Add Makefile for automating Ansible tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzianos committed Nov 17, 2019
1 parent e21f40f commit 30ba936
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ansible/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 30ba936

Please sign in to comment.