Class: Ansible::Ruby::Modules::Apt_repository

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

Overview

Add or remove an APT repositories in Ubuntu and Debian.

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

#filenameObject?

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.

Returns:

  • (Object, nil)

    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.



31
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/apt_repository.rb', line 31

attribute :filename

#modeInteger?

Returns The octal mode for newly created files in sources.list.d.

Returns:

  • (Integer, nil)

    The octal mode for newly created files in sources.list.d



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

attribute :mode

#repoString

Returns A source string for the repository.

Returns:

  • (String)

    A source string for the repository.



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

attribute :repo

#state:absent, ...

Returns A source string state.

Returns:

  • (:absent, :present, nil)

    A source string state.



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

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.

Returns:

  • (:yes, :no, nil)

    Run the equivalent of C(apt-get update) when a change occurs. Cache updates are run after making changes.



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

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.

Returns:

  • (:yes, :no, nil)

    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.



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

attribute :validate_certs