Skip to content

Instantly share code, notes, and snippets.

@viq
Created October 23, 2013 17:12
Show Gist options
  • Save viq/7122665 to your computer and use it in GitHub Desktop.
Save viq/7122665 to your computer and use it in GitHub Desktop.
append-file:
cmd:
- cwd: /tmp
- names:
{% for user, number in pillar.get('names', {}).items() %}
- echo {{ user }} {{ number }} >> logfile.txt
{% endfor %}
- run
names:
joe: 1
mike: 2
sally: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment