--- {%- from "youtubedl/map.jinja" import youtubedl with context %} youtubedl-bin: file.managed: - name: {{ youtubedl.install_dir}}/youtube-dl - source: https://github.com/ytdl-org/youtube-dl/releases/download/{{ youtubedl.version }}/youtube-dl - user: root - group: root - mode: 0775 - template: jinja - skip_verify: True