- name: Set Netbeans version set_fact: target_version: "26" #- name: Install Netbeans from Chocolatey # win_chocolatey: # name: NetBeans # state: upgrade # https://downloads.apache.org/netbeans/netbeans/26/netbeans-26-bin.zip - name: Download Netbeans win_get_url: url: "https://github.com/Friends-of-Apache-NetBeans/netbeans-installers/releases/download/v{{ target_version }}-build1/Apache-NetBeans-{{ target_version }}.exe" dest: "c:\\Apache-NetBeans-{{ target_version }}.exe" - name: Install Netbeans win_package: path: "c:\\Apache-NetBeans-{{ target_version }}.exe" # path: "https://github.com/Friends-of-Apache-NetBeans/netbeans-installers/releases/download/v{{ target_version }}-build1/Apache-NetBeans-{{ target_version }}.exe" # path: "https://dlcdn.apache.org/netbeans/netbeans-installers/{{ target_version }}/Apache-NetBeans-{{ target_version }}-bin-windows-x64.exe" arguments: "\"/DIR={{ ansible_env['ProgramFiles'] }}\\NetBeans-{{ target_version }}\" /SUPPRESSMSGBOXES /VERYSILENT /SP-" creates_path: "%ProgramFiles%\\NetBeans-{{ target_version }}\\bin\\netbeans.exe"