Class: Ansible::Ruby::Modules::Dconf

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/dconf.rb

Overview

This module allows modifications and reading of dconf database. The module is implemented as a wrapper around dconf tool. Please see the dconf(1) man page for more details. Since C(dconf) requires a running D-Bus session to change values, the module will try to detect an existing session and reuse it, or run the tool via C(dbus-run-session).

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

#keyString

Returns A dconf key to modify or read from the dconf database.

Returns:

  • (String)

    A dconf key to modify or read from the dconf database.



13
# File 'lib/ansible/ruby/modules/generated/system/dconf.rb', line 13

attribute :key

#state:read, ...

Returns The action to take upon the key/value.

Returns:

  • (:read, :present, :absent, nil)

    The action to take upon the key/value.



21
# File 'lib/ansible/ruby/modules/generated/system/dconf.rb', line 21

attribute :state

#valueArray<String>, ...

Returns Value to set for the specified dconf key. Value should be specified in GVariant format. Due to complexity of this format, it is best to have a look at existing values in the dconf database. Required for C(state=present).

Returns:

  • (Array<String>, String, nil)

    Value to set for the specified dconf key. Value should be specified in GVariant format. Due to complexity of this format, it is best to have a look at existing values in the dconf database. Required for C(state=present).



17
# File 'lib/ansible/ruby/modules/generated/system/dconf.rb', line 17

attribute :value