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

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

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



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

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



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

attribute :mode

#repoString

Returns A source string for the repository.

Returns:

  • (String)

    A source string for the repository.



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

attribute :repo

#state:absent, ...

Returns A source string state.

Returns:

  • (:absent, :present, nil)

    A source string state.



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

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.



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

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.



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

attribute :validate_certs