Class: Ansible::Ruby::Modules::Filesystem
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Filesystem
- Defined in:
- lib/ansible/ruby/modules/generated/system/filesystem.rb
Overview
This module creates a filesystem.
Instance Method Summary collapse
-
#dev ⇒ String
Target path to device or image file.
-
#force ⇒ :yes, ...
If C(yes), allows to create new filesystem on devices that already has filesystem.
-
#fstype ⇒ :btrfs, ...
Filesystem type to be created.,reiserfs support was added in 2.2.,lvm support was added in 2.5.,since 2.5, I(dev) can be an image file.,vfat support was added in 2.5,ocfs2 support was added in 2.6,f2fs support was added in 2.7.
-
#opts ⇒ String?
List of options to be passed to mkfs command.
-
#resizefs ⇒ :yes, ...
If C(yes), if the block device and filesytem size differ, grow the filesystem into the space.,Supported for C(ext2), C(ext3), C(ext4), C(ext4dev), C(f2fs), C(lvm), C(xfs) and C(vfat) filesystems.,XFS Will only grow if mounted.,vFAT will likely fail if fatresize < 1.04.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#dev ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 16 attribute :dev |
#force ⇒ :yes, ...
20 |
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 20 attribute :force |
#fstype ⇒ :btrfs, ...
12 |
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 12 attribute :fstype |
#opts ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 28 attribute :opts |
#resizefs ⇒ :yes, ...
24 |
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 24 attribute :resizefs |