Class: Ansible::Ruby::Modules::Ini_file

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/files/ini_file.rb

Instance Method Summary collapse

Methods inherited from Base

#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

#backup:yes, ...

Returns Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.

Returns:

  • (:yes, :no, nil)

    Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.



26
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 26

attribute :backup

#destString

Returns Path to the INI-style file; this file is created if required.

Returns:

  • (String)

    Path to the INI-style file; this file is created if required



10
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 10

attribute :dest

#no_extra_spacesBoolean?

Returns do not insert spaces before and after ‘=’ symbol.

Returns:

  • (Boolean, nil)

    do not insert spaces before and after ‘=’ symbol



37
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 37

attribute :no_extra_spaces

#optionString?

Returns if set (required for changing a I(value)), this is the name of the option.,May be omitted if adding/removing a whole I(section).

Returns:

  • (String, nil)

    if set (required for changing a I(value)), this is the name of the option.,May be omitted if adding/removing a whole I(section).



18
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 18

attribute :option

#othersObject?

Returns all arguments accepted by the M(file) module also work here.

Returns:

  • (Object, nil)

    all arguments accepted by the M(file) module also work here



30
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 30

attribute :others

#sectionString

Returns Section name in INI file. This is added if C(state=present) automatically when a single value is being set.

Returns:

  • (String)

    Section name in INI file. This is added if C(state=present) automatically when a single value is being set.



14
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 14

attribute :section

#state:present, ...

Returns If set to C(absent) the option or section will be removed if present instead of created.

Returns:

  • (:present, :absent, nil)

    If set to C(absent) the option or section will be removed if present instead of created.



33
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 33

attribute :state

#valueString?

Returns the string value to be associated with an I(option). May be omitted when removing an I(option).

Returns:

  • (String, nil)

    the string value to be associated with an I(option). May be omitted when removing an I(option).



22
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 22

attribute :value