Skip to content

Instantly share code, notes, and snippets.

@brunoluiz
Last active May 10, 2018 19:58
Show Gist options
  • Save brunoluiz/5f0ba013db14f40a4335d0ca8bd8ee0f to your computer and use it in GitHub Desktop.
Save brunoluiz/5f0ba013db14f40a4335d0ca8bd8ee0f to your computer and use it in GitHub Desktop.
Inventory deploy
cd ~/git/newoffers-infra/ansible
git checkout master
git pull --all
source .venv-ansible2/bin/activate
# Set the version here
VERSION=chub-1859.001
# Set the env here
ENV=int
# Build inventory
make inventory-build env=$ENV apikey=v2 version=$VERSION inventory_api_version=V2
# Deploy inventory
make inventory env=$ENV apikey=v2 version=$VERSION inventory_api_version=V2 tags=deploy
# Deactive ansible venv
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment