Class: Ansible::Ruby::Modules::Win_hotfix

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/windows/win_hotfix.rb

Overview

Install, uninstall a Windows hotfix.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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_identifierString?

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.

Returns:

  • (String, nil)

    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_kbString?

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.

Returns:

  • (String, nil)

    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

#sourceString?

Returns The path to the downloaded hotfix .msu file.,This MUST be set if C(state=present) and MUST be a .msu hotfix file.

Returns:

  • (String, nil)

    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.

Returns:

  • (:absent, :present, nil)

    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