Class: Ansible::Ruby::Modules::Replace

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/files/replace.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

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



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

attribute :backup

#destString

Returns The file to modify.

Returns:

  • (String)

    The file to modify.



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

attribute :dest

#follow:yes, ...

Returns This flag indicates that filesystem links, if they exist, should be followed.

Returns:

  • (:yes, :no, nil)

    This flag indicates that filesystem links, if they exist, should be followed.



29
# File 'lib/ansible/ruby/modules/generated/core/files/replace.rb', line 29

attribute :follow

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



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

attribute :others

#regexpString

Returns The regular expression to look for in the contents of the file. Uses Python regular expressions; see U(docs.python.org/2/library/re.html). Uses multiline mode, which means C(^) and C($) match the beginning and end respectively of I(each line) of the file.

Returns:

  • (String)

    The regular expression to look for in the contents of the file. Uses Python regular expressions; see U(docs.python.org/2/library/re.html). Uses multiline mode, which means C(^) and C($) match the beginning and end respectively of I(each line) of the file.



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

attribute :regexp

#replaceString?

Returns The string to replace regexp matches. May contain backreferences that will get expanded with the regexp capture groups if the regexp matches. If not set, matches are removed entirely.

Returns:

  • (String, nil)

    The string to replace regexp matches. May contain backreferences that will get expanded with the regexp capture groups if the regexp matches. If not set, matches are removed entirely.



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

attribute :replace