Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set path = "files/default/" ~ grains['os'] ~ "/" ~ grains['osmajorrelease'] ~ "/" %}
- /tmp/path.txt:
- file.managed:
- - contents: |
- {{ path }}
- {% for file in salt.cp.list_master(prefix=path) %}
- {% set path_tokens = file.split('/') %}
- {{ file }}:
- module.run:
- - name: test.echo
- - text: {{ file }}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement