Ansible-POC/tasks/install-framework-4.8.yml
2022-09-19 01:23:29 -05:00

26 lines
1.0 KiB
YAML

---
- name: Check if Framework 4.8 is Installed
win_reg_stat:
path: HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
name: Release
register: framework_release
- name: Ensure Framework 4.8 is Installed
ansible.windows.win_package:
path: https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe
product_id: "{2D6BB6B2-226A-4BAA-BDEC-798822606FF1}"
state: present
arguments: /install /quiet /norestart
register: framework_48
when: framework_release.value != 528049
- name: Reboot if Framework Reboot Requested
ansible.windows.win_reboot:
when: framework_release.value != 528049 and framework_48.reboot_required
- name: Ensure Microsoft Edge is Installed
ansible.windows.win_package:
path: https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/810f5f99-1567-46ad-9a44-4b26ba115366/MicrosoftEdgeEnterpriseX64.msi
product_id: "{810F5F99-1567-46AD-9A44-4b26ba115366}"
state: present