Class: Ansible::Ruby::Modules::Stat
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Stat
- Defined in:
- lib/ansible/ruby/modules/generated/files/stat.rb
Overview
Retrieves facts for a file similar to the linux/unix ‘stat’ command. For Windows targets, use the M(win_stat) module instead.
Instance Method Summary collapse
-
#checksum_algorithm ⇒ :md5, ...
Algorithm to determine checksum of file.
-
#follow ⇒ :yes, ...
Whether to follow symlinks.
-
#get_attributes ⇒ :yes, ...
Get file attributes using lsattr tool if present.
-
#get_checksum ⇒ :yes, ...
Whether to return a checksum of the file (default sha1).
-
#get_md5 ⇒ :yes, ...
Whether to return the md5 sum of the file.,Will return None if not a regular file or if we’re unable to use md5 (Common for FIPS-140 compliant systems).,The default of this option changed from C(yes) to C(no) in Ansible 2.5 and will be removed altogether in Ansible 2.9.,Use C(get_checksum=true) with C(checksum_algorithm=md5) to return an md5 hash under the C(checksum) return value.
-
#get_mime ⇒ :yes, ...
Use file magic and return data about the nature of the file.
-
#path ⇒ String
The full path of the file/object to get the facts of.
Methods inherited from Base
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
#checksum_algorithm ⇒ :md5, ...
29 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 29 attribute :checksum_algorithm |
#follow ⇒ :yes, ...
17 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 17 attribute :follow |
#get_attributes ⇒ :yes, ...
37 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 37 attribute :get_attributes |
#get_checksum ⇒ :yes, ...
25 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 25 attribute :get_checksum |
#get_md5 ⇒ :yes, ...
21 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 21 attribute :get_md5 |
#get_mime ⇒ :yes, ...
33 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 33 attribute :get_mime |
#path ⇒ String
13 |
# File 'lib/ansible/ruby/modules/generated/files/stat.rb', line 13 attribute :path |