Class: Ansible::Ruby::Modules::Find

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

#ageString?

Returns Select files whose age is equal to or greater than the specified time. Use a negative age to find files equal to or less than the specified time. You can choose seconds, minutes, hours, days, or weeks by specifying the first letter of any of those words (e.g., “1w”).

Returns:

  • (String, nil)

    Select files whose age is equal to or greater than the specified time. Use a negative age to find files equal to or less than the specified time. You can choose seconds, minutes, hours, days, or weeks by specifying the first letter of any of those words (e.g., “1w”).



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

attribute :age

#age_stamp:atime, ...

Returns Choose the file property against which we compare age. Default is mtime.

Returns:

  • (:atime, :mtime, :ctime, nil)

    Choose the file property against which we compare age. Default is mtime.



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

attribute :age_stamp

#containsObject?

Returns One or more re patterns which should be matched against the file content.

Returns:

  • (Object, nil)

    One or more re patterns which should be matched against the file content



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

attribute :contains

#file_type:file, ...

Returns Type of file to select.

Returns:

  • (:file, :directory, nil)

    Type of file to select



25
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 25

attribute :file_type

#followBoolean?

Returns Set this to true to follow symlinks in path for systems with python 2.6+.

Returns:

  • (Boolean, nil)

    Set this to true to follow symlinks in path for systems with python 2.6+



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

attribute :follow

#get_checksumBoolean?

Returns Set this to true to retrieve a file’s sha1 checksum.

Returns:

  • (Boolean, nil)

    Set this to true to retrieve a file’s sha1 checksum



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

attribute :get_checksum

#hiddenBoolean?

Returns Set this to true to include hidden files, otherwise they’ll be ignored.

Returns:

  • (Boolean, nil)

    Set this to true to include hidden files, otherwise they’ll be ignored.



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

attribute :hidden

#pathsString

Returns List of paths to the file or directory to search. All paths must be fully qualified.

Returns:

  • (String)

    List of paths to the file or directory to search. All paths must be fully qualified.



21
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 21

attribute :paths

#patternsString?

Returns One or more (shell or regex) patterns, which type is controled by C(use_regex) option.,The patterns restrict the list of files to be returned to those whose basenames match at least one of the patterns specified. Multiple patterns can be specified using a list.

Returns:

  • (String, nil)

    One or more (shell or regex) patterns, which type is controled by C(use_regex) option.,The patterns restrict the list of files to be returned to those whose basenames match at least one of the patterns specified. Multiple patterns can be specified using a list.



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

attribute :patterns

#recurse:yes, ...

Returns If target is a directory, recursively descend into the directory looking for files.

Returns:

  • (:yes, :no, nil)

    If target is a directory, recursively descend into the directory looking for files.



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

attribute :recurse

#sizeString?

Returns Select files whose size is equal to or greater than the specified size. Use a negative size to find files equal to or less than the specified size. Unqualified values are in bytes, but b, k, m, g, and t can be appended to specify bytes, kilobytes, megabytes, gigabytes, and terabytes, respectively. Size is not evaluated for directories.

Returns:

  • (String, nil)

    Select files whose size is equal to or greater than the specified size. Use a negative size to find files equal to or less than the specified size. Unqualified values are in bytes, but b, k, m, g, and t can be appended to specify bytes, kilobytes, megabytes, gigabytes, and terabytes, respectively. Size is not evaluated for directories.



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

attribute :size

#use_regexBoolean?

Returns If false the patterns are file globs (shell) if true they are python regexes.

Returns:

  • (Boolean, nil)

    If false the patterns are file globs (shell) if true they are python regexes



53
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 53

attribute :use_regex