Update role dependencies

This commit is contained in:
2024-02-08 15:55:01 -05:00
parent e09a7f7d45
commit bb21e8d5c6
507 changed files with 1270 additions and 28219 deletions

View File

@@ -1,18 +1,33 @@
---
- debug:
msg: "win update server: {{ win_update_server }}"
when: win_update_server is defined
- name: disable firewall for Domain, Public and Private profiles
win_shell: Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
when: "'Windows Server 2012' in ansible_distribution"
when:
- "'Windows Server 2012' in ansible_distribution or 'Windows 8' in ansible_distribution"
- windows_update_disable_firewall | bool
- name: disable firewall for Domain, Public and Private profiles
win_shell: netsh advfirewall set allprofiles state off
when: "'Windows Server 2008' in ansible_distribution or 'Windows 7' in ansible_distribution"
when:
- "'Windows Server 2008' in ansible_distribution or 'Windows 7' in ansible_distribution"
- windows_update_disable_firewall | bool
- name: get used space before update
win_shell: Get-PSDrive C | Select-Object Used | ConvertTo-Json
register: used_space_before_update
ignore_errors: yes
- name: reset some facts
set_fact:
update_retry_count: 0
missing_hotfixes: []
failed_kb: []
_reject_list: []
- include_tasks: updates-all.yml
when:
- "'Windows Server 2008' not in ansible_distribution"
@@ -42,8 +57,12 @@
- name: enabled firewall for Domain, Public and Private profiles
win_shell: Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
when: "'Windows Server 2012' in ansible_distribution"
when:
- "'Windows Server 2012' in ansible_distribution or 'Windows 8' in ansible_distribution"
- windows_update_disable_firewall | bool
- name: enable firewall for Domain, Public and Private profiles
win_shell: netsh advfirewall set allprofiles state on
when: "'Windows Server 2008' in ansible_distribution or 'Windows 7' in ansible_distribution"
win_shell: netsh advfirewall set allprofiles state on
when:
- "'Windows Server 2008' in ansible_distribution or 'Windows 7' in ansible_distribution"
- windows_update_disable_firewall | bool