{% if grains['kernel'] == 'Linux' %} {% set VERA_VERSION = '1.23' %} {% set VERA_HASH = 'https://launchpad.net/veracrypt/trunk/' + VERA_VERSION + '/+download/veracrypt-'+VERA_VERSION+'-setup.tar.bz2.sig' %} {% set VERA_URL='https://launchpad.net/veracrypt/trunk/' + VERA_VERSION + '/+download/veracrypt-'+VERA_VERSION+'-setup.tar.bz2' %} 'veracrypt-{{VERA_VERSION}}_copy': file.managed: - source: {{VERA_URL}} - skip_verify: False - source_hash: https://launchpad.net/veracrypt/trunk/1.23/+download/veracrypt-1.23-sha512sum.txt - name : "/tmp/veracrypt-{{VERA_VERSION}}-setup.tar.bz2" - user: root - group: root - mode: 755 'veracrypt-{{VERA_VERSION}}_uncompress': cmd.run: - name: "tar -xjf /tmp/veracrypt-{{VERA_VERSION}}-setup.tar.bz2" - cwd: /tmp 'veracrypt-{{VERA_VERSION}}_extract_installer': cmd.run: - name: "/tmp/veracrypt-{{VERA_VERSION}}-setup-gui-x64 --noexec --target /tmp" - cwd: /tmp 'remove sources files': file.absent: - names: - /tmp/veracrypt-{{VERA_VERSION}}-setup-console-x64 - /tmp/veracrypt-{{VERA_VERSION}}-setup-console-x86 - /tmp/veracrypt-{{VERA_VERSION}}-setup-gui-x64 - /tmp/veracrypt-{{VERA_VERSION}}-setup-gui-x86 - /tmp/veracrypt-{{VERA_VERSION}}-setup.tar.bz2 'make binarie file': cmd.run: - name: 'tail -n +1107 /tmp/veracrypt_install_gui_x64.sh >/tmp/binarie.tar' - cwd: /tmp 'final install': cmd.run: - name: 'cd /;tar -xf /tmp/binarie.tar' - cwd: / 'remove temp files': file.absent: - names: - /tmp/binarie.tar - /tmp/veracrypt_install_gui_x64.sh {% endif %}