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

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

Overview

Manage binary packages for FreeBSD using ‘pkgng’ which is available in versions after 9.0.

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

#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.



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

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



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

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



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

attribute :chroot

#nameArray<String>, String

Returns name of package to install/remove.

Returns:

  • (Array<String>, String)

    name of package to install/remove



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

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



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

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



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

attribute :rootdir

#state:present, ...

Returns state of the package.

Returns:

  • (:present, :absent, nil)

    state of the package



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

attribute :state