--- - name: Check Chocolaty Install ansible.builtin.win_stat: path: C:\ProgramData\chocolatey\choco.exe register: file_check - name: Install .NetFramwork 4.8 ansible.builtin.win_shell: | wget https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe -outfile C:\Windows\temp\ndp48-x86-x64-allos-enu.exe cd C:\Windows\temp\ ./ndp48-x86-x64-allos-enu.exe /q - name: WAIT for VM "{{ vmid }}" ansible.builtin.wait_for_connection: delay: 10 timeout: "{{ timeout_set }}" when: file_check.stat.exists == False - name: Install Chocolaty ansible.builtin.win_shell: "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" when: file_check.stat.exists == False - name: Install Google Chrome ansible.builtin.win_chocolatey: name: googlechrome state: present - name: Install 7zip ansible.builtin.win_chocolatey: name: 7zip state: present - name: Install Javaruntime ansible.builtin.win_chocolatey: name: javaruntime state: present