Class: Ansible::Ruby::Modules::Mount

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

#dumpInteger?

Returns dump (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.

Returns:

  • (Integer, nil)

    dump (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.



26
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 26

attribute :dump

#fstabString?

Returns file to use instead of C(/etc/fstab). You shouldn’t use that option unless you really know what you are doing. This might be useful if you need to configure mountpoints in a chroot environment.

Returns:

  • (String, nil)

    file to use instead of C(/etc/fstab). You shouldn’t use that option unless you really know what you are doing. This might be useful if you need to configure mountpoints in a chroot environment.



38
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 38

attribute :fstab

#fstypeString

Returns file-system type.

Returns:

  • (String)

    file-system type



18
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 18

attribute :fstype

#nameString

Returns path to the mount point, eg: C(/mnt/files).

Returns:

  • (String)

    path to the mount point, eg: C(/mnt/files)



10
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 10

attribute :name

#optsString?

Returns mount options (see fstab(5)).

Returns:

  • (String, nil)

    mount options (see fstab(5))



22
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 22

attribute :opts

#passnoInteger?

Returns passno (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.

Returns:

  • (Integer, nil)

    passno (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.



30
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 30

attribute :passno

#srcString

Returns device to be mounted on I(name).

Returns:

  • (String)

    device to be mounted on I(name).



14
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 14

attribute :src

#state:present, ...

Returns If C(mounted) or C(unmounted), the device will be actively mounted or unmounted as needed and appropriately configured in I(fstab).,C(absent) and C(present) only deal with I(fstab) but will not affect current mounting.,If specifying C(mounted) and the mount point is not present, the mount point will be created. Similarly.,Specifying C(absent) will remove the mount point directory.

Returns:

  • (:present, :absent, :mounted, :unmounted)

    If C(mounted) or C(unmounted), the device will be actively mounted or unmounted as needed and appropriately configured in I(fstab).,C(absent) and C(present) only deal with I(fstab) but will not affect current mounting.,If specifying C(mounted) and the mount point is not present, the mount point will be created. Similarly.,Specifying C(absent) will remove the mount point directory.



34
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 34

attribute :state