Class: Ansible::Ruby::Modules::Pkgng

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

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, #to_h, validates

Constructor Details

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

Instance Method Details

#annotationString?

Returns a comma-separated list of keyvalue-pairs of the form <+/-/:><key>. A ‘+’ denotes adding an annotation, a ‘-’ denotes removing an annotation, and ‘:’ denotes modifying an annotation. If setting or modifying annotations, a value must be provided.

Returns:

  • (String, nil)

    a comma-separated list of keyvalue-pairs of the form <+/-/:><key>. A ‘+’ denotes adding an annotation, a ‘-’ denotes removing an annotation, and ‘:’ denotes modifying an annotation. If setting or modifying annotations, a value must be provided.



22
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 22

attribute :annotation

#cachedBoolean?

Returns use local package base or try to fetch an updated one.

Returns:

  • (Boolean, nil)

    use local package base or try to fetch an updated one



18
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 18

attribute :cached

#chrootObject?

Returns pkg will chroot in the specified environment,can not be used together with ‘rootdir’ option.

Returns:

  • (Object, nil)

    pkg will chroot in the specified environment,can not be used together with ‘rootdir’ option



32
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 32

attribute :chroot

#nameArray<String>, String

Returns name of package to install/remove.

Returns:

  • (Array<String>, String)

    name of package to install/remove



10
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 10

attribute :name

#pkgsiteObject?

Returns for pkgng versions before 1.1.4, specify packagesite to use for downloading packages, if not specified, use settings from /usr/local/etc/pkg.conf for newer pkgng versions, specify a the name of a repository configured in /usr/local/etc/pkg/repos.

Returns:

  • (Object, nil)

    for pkgng versions before 1.1.4, specify packagesite to use for downloading packages, if not specified, use settings from /usr/local/etc/pkg.conf for newer pkgng versions, specify a the name of a repository configured in /usr/local/etc/pkg/repos



26
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 26

attribute :pkgsite

#rootdirObject?

Returns for pkgng versions 1.5 and later, pkg will install all packages within the specified root directory,can not be used together with ‘chroot’ option.

Returns:

  • (Object, nil)

    for pkgng versions 1.5 and later, pkg will install all packages within the specified root directory,can not be used together with ‘chroot’ option



29
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 29

attribute :rootdir

#state:present, ...

Returns state of the package.

Returns:

  • (:present, :absent, nil)

    state of the package



14
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb', line 14

attribute :state