Class: Ansible::Ruby::Modules::Apt_key
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Apt_key
- 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
-
#data ⇒ String?
The keyfile contents to add to the keyring.
-
#file ⇒ String?
The path to a keyfile on the remote server to add to the keyring.
-
#id ⇒ String, ...
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.
-
#keyring ⇒ String?
The full path to specific keyring file in /etc/apt/trusted.gpg.d/.
-
#keyserver ⇒ String?
The keyserver to retrieve key from.
-
#state ⇒ :absent, ...
Ensures that the key is present (added) or absent (revoked).
-
#url ⇒ String?
The URL to retrieve key from.
-
#validate_certs ⇒ :yes, ...
If C(no), SSL certificates for the target url will not be validated.
Methods inherited from Base
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
#data ⇒ String?
Returns The keyfile contents to add to the keyring.
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 16 attribute :data |
#file ⇒ String?
Returns 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 |
#id ⇒ String, ...
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).
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 12 attribute :id |
#keyring ⇒ String?
Returns 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 |
#keyserver ⇒ String?
Returns 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).
36 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 36 attribute :state |
#url ⇒ String?
Returns 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.
40 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_key.rb', line 40 attribute :validate_certs |