Class: Ansible::Ruby::Modules::Apt_repository
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Apt_repository
- Defined in:
- lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb
Overview
Add or remove an APT repositories in Ubuntu and Debian.
Instance Method Summary collapse
-
#codename ⇒ String?
Override the distribution codename to use for PPA repositories.
-
#filename ⇒ String?
Sets the name of the source list file in sources.list.d.
-
#mode ⇒ String?
The octal mode for newly created files in sources.list.d.
-
#repo ⇒ String
A source string for the repository.
-
#state ⇒ :absent, ...
A source string state.
-
#update_cache ⇒ :yes, ...
Run the equivalent of C(apt-get update) when a change occurs.
-
#validate_certs ⇒ :yes, ...
If C(no), SSL certificates for the target repo will not be validated.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#codename ⇒ String?
Returns Override the distribution codename to use for PPA repositories. Should usually only be set when working with a PPA on a non-Ubuntu target (e.g. Debian or Mint).
36 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 36 attribute :codename |
#filename ⇒ String?
Returns Sets the name of the source list file in sources.list.d. Defaults to a file name based on the repository source url. The .list extension will be automatically added.
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 32 attribute :filename |
#mode ⇒ String?
Returns The octal mode for newly created files in sources.list.d.
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 20 attribute :mode |
#repo ⇒ String
Returns A source string for the repository.
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 12 attribute :repo |
#state ⇒ :absent, ...
Returns A source string state.
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 16 attribute :state |
#update_cache ⇒ :yes, ...
Returns Run the equivalent of C(apt-get update) when a change occurs. Cache updates are run after making changes.
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 24 attribute :update_cache |
#validate_certs ⇒ :yes, ...
Returns If C(no), SSL certificates for the target repo will not be validated. This should only be used on personally controlled sites using self-signed certificates.
28 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt_repository.rb', line 28 attribute :validate_certs |