Class: Ansible::Ruby::Modules::Portinstall

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/packaging/os/portinstall.rb

Overview

Manage packages for FreeBSD using ‘portinstall’.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameArray<String>, String

Returns name of package to install/remove.

Returns:

  • (Array<String>, String)

    name of package to install/remove



12
# File 'lib/ansible/ruby/modules/generated/packaging/os/portinstall.rb', line 12

attribute :name

#state:present, ...

Returns state of the package.

Returns:

  • (:present, :absent, nil)

    state of the package



16
# File 'lib/ansible/ruby/modules/generated/packaging/os/portinstall.rb', line 16

attribute :state

#use_packagesBoolean?

Returns use packages instead of ports whenever available.

Returns:

  • (Boolean, nil)

    use packages instead of ports whenever available



20
# File 'lib/ansible/ruby/modules/generated/packaging/os/portinstall.rb', line 20

attribute :use_packages