{% if grains['kernel'] == 'Linux' %} {% set LURL='https://www.arduino.cc/download_handler.php?f=/arduino-1.8.8-linux64.tar.xz' %} 'Arduino IDE copy': file.managed: - source: {{LURL}} - skip_verify: False - source_hash: https://downloads.arduino.cc/arduino-1.8.8.sha512sum.txt - name : "/tmp/arduino.tar.xz" - user: root - group: root - mode: 755 {% endif %}