Skip to content

Instantly share code, notes, and snippets.

@ten0s
Created October 26, 2015 12:25
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 ten0s/9ed2bd65b362e4defa50 to your computer and use it in GitHub Desktop.
Save ten0s/9ed2bd65b362e4defa50 to your computer and use it in GitHub Desktop.
TypeError: argument of type 'StrictUndefined' is not iterable
Ansible template
template: src={{item}}.j2 dest=/etc/nginx/conf.d/{{item}}
with_items:
- server.conf
notify: Restart Nginx
fails with:
fatal: [test] => {'msg': "TypeError: argument of type 'StrictUndefined' is not iterable", 'failed': True}
Something is undefined inside the template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment