„windowssample.yml“ ändern
This commit is contained in:
		@ -1,14 +1,17 @@
 | 
			
		||||
- name: Install all updates and reboot as many times as needed
 | 
			
		||||
  ansible.windows.win_updates:
 | 
			
		||||
    category_names: '*'
 | 
			
		||||
    reboot: true
 | 
			
		||||
- name: file module demo
 | 
			
		||||
  hosts: all
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Install all updates and reboot as many times as needed
 | 
			
		||||
      ansible.windows.win_updates:
 | 
			
		||||
        category_names: '*'
 | 
			
		||||
        reboot: true
 | 
			
		||||
 | 
			
		||||
- name: Install all security, critical, and rollup updates without a scheduled task
 | 
			
		||||
  ansible.windows.win_updates:
 | 
			
		||||
    category_names:
 | 
			
		||||
      - SecurityUpdates
 | 
			
		||||
      - CriticalUpdates
 | 
			
		||||
      - UpdateRollups
 | 
			
		||||
#- name: Install all security, critical, and rollup updates without a scheduled task
 | 
			
		||||
#  ansible.windows.win_updates:
 | 
			
		||||
#    category_names:
 | 
			
		||||
#      - SecurityUpdates
 | 
			
		||||
#      - CriticalUpdates
 | 
			
		||||
#      - UpdateRollups
 | 
			
		||||
 | 
			
		||||
#- name: Search-only, return list of found updates (if any), log to C:\ansible_wu.txt
 | 
			
		||||
#  ansible.windows.win_updates:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user