Class: Ansible::Ruby::Modules::File
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::File
- Includes:
- MissingFileStuff
- Defined in:
- lib/ansible/ruby/modules/generated/core/files/file.rb,
lib/ansible/ruby/modules/custom/files/file.rb
Overview
Sets attributes of files, symlinks, and directories, or removes files/symlinks/directories. Many other modules support the same options as the M(file) module - including M(copy), M(template), and M(assemble).
Instance Method Summary collapse
-
#follow ⇒ :yes, ...
This flag indicates that filesystem links, if they exist, should be followed.
-
#force ⇒ :yes, ...
Force the creation of the symlinks in two cases: the source file does not exist (but will appear later); the destination exists and is a file (so, we need to unlink the “path” file and create symlink to the “src” file in place of it).
-
#path ⇒ Object
Path to the file being managed.
-
#recurse ⇒ :yes, ...
Recursively set the specified file attributes (applies only to state=directory).
-
#src ⇒ String?
Path of the file to link to (applies only to C(state=link)).
-
#state ⇒ :file, ...
If C(directory), all immediate subdirectories will be created if they do not exist, since 1.7 they will be created with the supplied permissions.
Methods included from MissingFileStuff
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
#follow ⇒ :yes, ...
31 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 31 attribute :follow |
#force ⇒ :yes, ...
27 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 27 attribute :force |
#path ⇒ Object
11 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 11 attribute :path |
#recurse ⇒ :yes, ...
23 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 23 attribute :recurse |
#src ⇒ String?
19 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 19 attribute :src |
#state ⇒ :file, ...
15 |
# File 'lib/ansible/ruby/modules/generated/core/files/file.rb', line 15 attribute :state |