Class: Ansible::Ruby::Modules::Win_feature

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

Overview

Installs or uninstalls Windows Roles or Features on Windows Server. This module uses the Add/Remove-WindowsFeature Cmdlets on Windows 2008 R2 and Install/Uninstall-WindowsFeature Cmdlets on Windows 2012, which are not available on client os machines.

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

#include_management_tools:yes, ...

Returns Adds the corresponding management tools to the specified feature.,Not supported in Windows 2008 R2 and will be ignored.

Returns:

  • (:yes, :no, nil)

    Adds the corresponding management tools to the specified feature.,Not supported in Windows 2008 R2 and will be ignored.



24
# File 'lib/ansible/ruby/modules/generated/windows/win_feature.rb', line 24

attribute :include_management_tools

#include_sub_features:yes, ...

Returns Adds all subfeatures of the specified feature.

Returns:

  • (:yes, :no, nil)

    Adds all subfeatures of the specified feature.



20
# File 'lib/ansible/ruby/modules/generated/windows/win_feature.rb', line 20

attribute :include_sub_features

#nameArray<String>, String

Returns Names of roles or features to install as a single feature or a comma-separated list of features.

Returns:

  • (Array<String>, String)

    Names of roles or features to install as a single feature or a comma-separated list of features.



12
# File 'lib/ansible/ruby/modules/generated/windows/win_feature.rb', line 12

attribute :name

#sourceString?

Returns Specify a source to install the feature from.,Not supported in Windows 2008 R2 and will be ignored.,Can either be C(driveletter:sourcessxs) or C({IP}sharesourcessxs).

Returns:

  • (String, nil)

    Specify a source to install the feature from.,Not supported in Windows 2008 R2 and will be ignored.,Can either be C(driveletter:sourcessxs) or C({IP}sharesourcessxs).



28
# File 'lib/ansible/ruby/modules/generated/windows/win_feature.rb', line 28

attribute :source

#state:absent, ...

Returns State of the features or roles on the system.

Returns:

  • (:absent, :present, nil)

    State of the features or roles on the system.



16
# File 'lib/ansible/ruby/modules/generated/windows/win_feature.rb', line 16

attribute :state