Class: Ansible::Ruby::Modules::Alternatives

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/alternatives.rb

Overview

Manages symbolic links using the ‘update-alternatives’ tool Useful when multiple programs are installed but provide similar functionality (e.g. different editors).

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

Returns The path to the symbolic link that should point to the real executable.,This option is always required on RHEL-based distributions. On Debian-based distributions this option is required when the alternative I(name) is unknown to the system.

Returns:

  • (String, nil)

    The path to the symbolic link that should point to the real executable.,This option is always required on RHEL-based distributions. On Debian-based distributions this option is required when the alternative I(name) is unknown to the system.



21
# File 'lib/ansible/ruby/modules/generated/system/alternatives.rb', line 21

attribute :link

#nameString

Returns The generic name of the link.

Returns:

  • (String)

    The generic name of the link.



13
# File 'lib/ansible/ruby/modules/generated/system/alternatives.rb', line 13

attribute :name

#pathString

Returns The path to the real executable that the link should point to.

Returns:

  • (String)

    The path to the real executable that the link should point to.



17
# File 'lib/ansible/ruby/modules/generated/system/alternatives.rb', line 17

attribute :path

#priorityInteger?

Returns The priority of the alternative.

Returns:

  • (Integer, nil)

    The priority of the alternative



25
# File 'lib/ansible/ruby/modules/generated/system/alternatives.rb', line 25

attribute :priority