Class: Ansible::Ruby::Modules::Win_hotfix
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_hotfix
- Defined in:
- lib/ansible/ruby/modules/generated/windows/win_hotfix.rb
Overview
Install, uninstall a Windows hotfix.
Instance Method Summary collapse
-
#hotfix_identifier ⇒ String?
The name of the hotfix as shown in DISM, see examples for details.,This or C(hotfix_kb) MUST be set when C(state=absent).,If C(state=present) then the hotfix at C(source) will be validated against this value, if it does not match an error will occur.,You can get the identifier by running ‘Get-WindowsPackage -Online -PackagePath path-to-cab-in-msu’ after expanding the msu file.
-
#hotfix_kb ⇒ String?
The name of the KB the hotfix relates to, see examples for details.,This of C(hotfix_identifier) MUST be set when C(state=absent).,If C(state=present) then the hotfix at C(source) will be validated against this value, if it does not match an error will occur.,Because DISM uses the identifier as a key and doesn’t refer to a KB in all cases it is recommended to use C(hotfix_identifier) instead.
-
#source ⇒ String?
The path to the downloaded hotfix .msu file.,This MUST be set if C(state=present) and MUST be a .msu hotfix file.
-
#state ⇒ :absent, ...
Whether to install or uninstall the hotfix.,When C(present), C(source) MUST be set.,When C(absent), C(hotfix_identifier) or C(hotfix_kb) MUST be set.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#hotfix_identifier ⇒ String?
Returns The name of the hotfix as shown in DISM, see examples for details.,This or C(hotfix_kb) MUST be set when C(state=absent).,If C(state=present) then the hotfix at C(source) will be validated against this value, if it does not match an error will occur.,You can get the identifier by running ‘Get-WindowsPackage -Online -PackagePath path-to-cab-in-msu’ after expanding the msu file.
12 |
# File 'lib/ansible/ruby/modules/generated/windows/win_hotfix.rb', line 12 attribute :hotfix_identifier |
#hotfix_kb ⇒ String?
Returns The name of the KB the hotfix relates to, see examples for details.,This of C(hotfix_identifier) MUST be set when C(state=absent).,If C(state=present) then the hotfix at C(source) will be validated against this value, if it does not match an error will occur.,Because DISM uses the identifier as a key and doesn’t refer to a KB in all cases it is recommended to use C(hotfix_identifier) instead.
16 |
# File 'lib/ansible/ruby/modules/generated/windows/win_hotfix.rb', line 16 attribute :hotfix_kb |
#source ⇒ String?
Returns The path to the downloaded hotfix .msu file.,This MUST be set if C(state=present) and MUST be a .msu hotfix file.
24 |
# File 'lib/ansible/ruby/modules/generated/windows/win_hotfix.rb', line 24 attribute :source |
#state ⇒ :absent, ...
Returns Whether to install or uninstall the hotfix.,When C(present), C(source) MUST be set.,When C(absent), C(hotfix_identifier) or C(hotfix_kb) MUST be set.
20 |
# File 'lib/ansible/ruby/modules/generated/windows/win_hotfix.rb', line 20 attribute :state |