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

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

Overview

Manage (add, remove, change) individual settings in an INI-style file without having to manage the file as a whole with, say, M(template) or M(assemble). Adds missing sections if they don’t exist. Before version 2.0, comments are discarded when the source file is read, and therefore will not show up in the destination file. Since version 2.3, this module adds missing ending newlines to files to keep in line with the POSIX standard, even when no other modifications need to be applied.

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

#allow_no_valueSymbol?



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

attribute :allow_no_value

#backup:yes, ...



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

attribute :backup

#create:yes, ...



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

attribute :create

#no_extra_spaces:yes, ...



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

attribute :no_extra_spaces

#optionString?



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

attribute :option

#othersObject?



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

attribute :others

#pathString



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

attribute :path

#sectionString



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

attribute :section

#state:absent, ...



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

attribute :state

#valueString?



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

attribute :value