有没有办法使用win_updates
ansible 中的模块来安装所有更新,而不必在剧本上手动指定每个更新类别?
答案1
取自https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_updates_module.html#examples:
- name: Install all updates and reboot as many times as needed
ansible.windows.win_updates:
category_names: '*'
reboot: yes