Skip to content

Instantly share code, notes, and snippets.

@danrough
Created October 29, 2013 15:47
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 danrough/7217218 to your computer and use it in GitHub Desktop.
Save danrough/7217218 to your computer and use it in GitHub Desktop.
Using parameterised includes
---
# (Ansible version 1.4)
#
# ERROR: Syntax Error while loading YAML script, /Users/danrough/Documents/Development/OpsScripts/ansible/base-build/roles/common/tasks/main.yml
# Note: The error may actually appear before this position: line 14, column 3
#
# - { include: user.yml, user: {{ users.username }}, sudo: {{ users.isSudo }} }
# with_items: users
# ^
- { include: user.yml, user: {{ users.username }}, sudo: {{ users.isSudo }} }
with_items: users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment