Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active August 27, 2016 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegopacheco/c7fce1c34a7a576ab9610358477f43a0 to your computer and use it in GitHub Desktop.
Save diegopacheco/c7fce1c34a7a576ab9610358477f43a0 to your computer and use it in GitHub Desktop.
How to pass extra vars to ansible?
ansible-playbook --extra-vars "DIR_LOCATION=/tmp/my-custom-dir" playbook.yml
- name: Node apps deploy
  command: mkdir -p {{ DIR_LOCATION|default('MISSING__DIR_LOCATION') }}
  tags:
    - build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment