Class: Ansible::Ruby::Modules::Osx_defaults

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

Overview

osx_defaults allows users to read, write, and delete macOS user defaults from Ansible scripts. macOS applications and other programs use the defaults system to record user preferences and other information that must be maintained when the applications aren’t running (such as default font for new documents, or the position of an Info panel).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#array_add:yes, ...

Returns Add new elements to the array for a key which has an array as its value.

Returns:

  • (:yes, :no, nil)

    Add new elements to the array for a key which has an array as its value.



28
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 28

attribute :array_add

#domainString?

Returns The domain is a domain name of the form com.companyname.appname.

Returns:

  • (String, nil)

    The domain is a domain name of the form com.companyname.appname.



12
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 12

attribute :domain

#hostString?

Returns The host on which the preference should apply. The special value “currentHost” corresponds to the “-currentHost” switch of the defaults commandline tool.

Returns:

  • (String, nil)

    The host on which the preference should apply. The special value “currentHost” corresponds to the “-currentHost” switch of the defaults commandline tool.



16
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 16

attribute :host

#keyString

Returns The key of the user preference.

Returns:

  • (String)

    The key of the user preference



20
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 20

attribute :key

#state:present, ...

Returns The state of the user defaults.

Returns:

  • (:present, :absent, nil)

    The state of the user defaults



36
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 36

attribute :state

#type:array, ...

Returns The type of value to write.

Returns:

  • (:array, :bool, :boolean, :date, :float, :int, :integer, :string, nil)

    The type of value to write.



24
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 24

attribute :type

#valueBoolean?

Returns The value to write. Only required when state = present.

Returns:

  • (Boolean, nil)

    The value to write. Only required when state = present.



32
# File 'lib/ansible/ruby/modules/generated/system/osx_defaults.rb', line 32

attribute :value