{% if grains['kernel'] == 'Linux' %} {% set VERA_VERSION = '1.23' %} {% set VERA_HASH = 'https://launchpad.net/veracrypt/trunk/' + VERA_VERSION + '/+download/veracrypt-1.23-setup.tar.bz2.sig' %} {% set VERA_URL='https://launchpad.net/veracrypt/trunk/' + VERA_VERSION + '/+download/veracrypt-1.23-setup.tar.bz2' %} 'veracrypt-{{VERA_VERSION}}_copy': file.managed: - source: {{VERA_URL}} - source_hash: {{VERA_HASH}} - name : "/tmp/veracrypt-setup.tar.bz2" - user: root - group: root - mode: 755 {% endif %}