Skip to content

Instantly share code, notes, and snippets.

@ryanwalder
Created February 5, 2018 14:54
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 ryanwalder/dfc2df7708597994373b4f2d18bccbfe to your computer and use it in GitHub Desktop.
Save ryanwalder/dfc2df7708597994373b4f2d18bccbfe to your computer and use it in GitHub Desktop.
{% set blah = {
'bob': {
'ip': '123',
'comment': 'foo',
'vol': '/dev/one',
},
'alice': {
'ip': '123',
'comment': 'foo',
'vol': '/dev/one',
}
} %}
{% for name, values in blah.items() %}
ssh-auth-{{ name }}:
function.name:
- user: {{ name }}
- config: {{ values.ip }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment