Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set test = ['foo', 'bar', 'baz'] %}
- {% if test is iterable and test is not string and test is not mapping %}
- {% set content = test %}
- {% endif %}
- /tmp/test.txt:
- file.managed:
- - user: root
- - group: root
- - mode: 0664
- - contents: {{ content }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement