Class: Ansible::Ruby::Modules::Mount
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Mount
- Defined in:
- lib/ansible/ruby/modules/generated/core/system/mount.rb
Instance Method Summary collapse
-
#dump ⇒ Integer?
Dump (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.
-
#fstab ⇒ String?
File to use instead of C(/etc/fstab).
-
#fstype ⇒ String
File-system type.
-
#name ⇒ String
Path to the mount point, eg: C(/mnt/files).
-
#opts ⇒ String?
Mount options (see fstab(5)).
-
#passno ⇒ Integer?
Passno (see fstab(5)), Note that if nulled, C(state=present) will cease to work and duplicate entries will be made with subsequent runs.
-
#src ⇒ String
Device to be mounted on I(name).
-
#state ⇒ :present, ...
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.
Methods inherited from Base
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
#dump ⇒ Integer?
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.
26 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 26 attribute :dump |
#fstab ⇒ String?
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.
38 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 38 attribute :fstab |
#fstype ⇒ String
Returns file-system type.
18 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 18 attribute :fstype |
#name ⇒ String
Returns path to the mount point, eg: C(/mnt/files).
10 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 10 attribute :name |
#opts ⇒ String?
Returns mount options (see fstab(5)).
22 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 22 attribute :opts |
#passno ⇒ Integer?
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.
30 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 30 attribute :passno |
#src ⇒ String
Returns 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.
34 |
# File 'lib/ansible/ruby/modules/generated/core/system/mount.rb', line 34 attribute :state |