Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions tasks/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,20 @@
state: present
version: "1.4.0"
force: true
become: true

- name: Install Microsoft .NET Framework 4.8
chocolatey.chocolatey.win_chocolatey:
name: "netfx-4.8"
state: present
become: true

- name: Reboot the host to complete .NET Framework 4.8 install
ansible.windows.win_reboot:
post_reboot_delay: 180
become: true

- name: Install Chocolatey CLI v2.0.0+ when .NET Framework 4.8 dependency is met
chocolatey.chocolatey.win_chocolatey:
name: chocolatey
state: latest
become: true
register: chocolatey_result
retries: 3
delay: 60
Expand All @@ -50,7 +46,6 @@
- "internal repo"
loop_control:
loop_var: source
become: true

- name: Add sources to choco
chocolatey.chocolatey.win_chocolatey_source:
Expand All @@ -59,5 +54,4 @@
source: "{{ item.url }}"
source_username: "{{ chocolatey_mirror_username }}"
source_password: "{{ chocolatey_mirror_password }}"
become: true
loop: "{{ chocolatey_sources }}"
loop: "{{ chocolatey_sources | default([], true) }}"