Class: Ansible::Ruby::Modules::Filesystem

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/filesystem.rb

Overview

This module creates a filesystem.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#devString

Returns Target path to device or image file.

Returns:

  • (String)

    Target path to device or image file.



16
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 16

attribute :dev

#force:yes, ...

Returns If C(yes), allows to create new filesystem on devices that already has filesystem.

Returns:

  • (:yes, :no, nil)

    If C(yes), allows to create new filesystem on devices that already has filesystem.



20
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 20

attribute :force

#fstype:btrfs, ...

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

Returns:

  • (:btrfs, :ext2, :ext3, :ext4, :ext4dev, :f2fs, :lvm, :ocfs2, :reiserfs, :xfs, :vfat)

    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



12
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 12

attribute :fstype

#optsString?

Returns List of options to be passed to mkfs command.

Returns:

  • (String, nil)

    List of options to be passed to mkfs command.



28
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 28

attribute :opts

#resizefs:yes, ...

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

Returns:

  • (:yes, :no, nil)

    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.



24
# File 'lib/ansible/ruby/modules/generated/system/filesystem.rb', line 24

attribute :resizefs