Class: Ansible::Ruby::Modules::Apt_key

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

Overview

Add or remove an I(apt) key, optionally downloading it.

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

#dataString?

Returns The keyfile contents to add to the keyring.

Returns:

  • (String, nil)

    The keyfile contents to add to the keyring.



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

attribute :data

#fileString?

Returns The path to a keyfile on the remote server to add to the keyring.

Returns:

  • (String, nil)

    The path to a keyfile on the remote server to add to the keyring.



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

attribute :file

#idString, ...

Returns The identifier of the key.,Including this allows check mode to correctly report the changed state.,If specifying a subkey’s id be aware that apt-key does not understand how to remove keys via a subkey id. Specify the primary key’s id instead.,This parameter is required when C(state) is set to C(absent).

Returns:

  • (String, Integer, nil)

    The identifier of the key.,Including this allows check mode to correctly report the changed state.,If specifying a subkey’s id be aware that apt-key does not understand how to remove keys via a subkey id. Specify the primary key’s id instead.,This parameter is required when C(state) is set to C(absent).



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

attribute :id

#keyringString?

Returns The full path to specific keyring file in /etc/apt/trusted.gpg.d/.

Returns:

  • (String, nil)

    The full path to specific keyring file in /etc/apt/trusted.gpg.d/



24
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 24

attribute :keyring

#keyserverString?

Returns The keyserver to retrieve key from.

Returns:

  • (String, nil)

    The keyserver to retrieve key from.



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

attribute :keyserver

#state:absent, ...

Returns Ensures that the key is present (added) or absent (revoked).

Returns:

  • (:absent, :present, nil)

    Ensures that the key is present (added) or absent (revoked).



36
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 36

attribute :state

#urlString?

Returns The URL to retrieve key from.

Returns:

  • (String, nil)

    The URL to retrieve key from.



28
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 28

attribute :url

#validate_certs:yes, ...

Returns If C(no), SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Returns:

  • (:yes, :no, nil)

    If C(no), SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates.



40
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 40

attribute :validate_certs