Ansible Module mount: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * https://docs.ansible.com/ansible/latest/modules/mount_module.html =Internal= * Ansible Concepts =Overview= =Example= <syntaxhigh...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
Mount and unmount devices while synchronizing the corresponding /etc/fstab state. | |||
= | =Examples= | ||
==Mount a Device and Add it to /etc/fstab== | |||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
- name: mount storage and update /etc/fstab | |||
mount: | |||
state: mounted | |||
path: /mnt/ebs0 | |||
src: /dev/xvdb | |||
fstype: xfs | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 06:53, 12 December 2019
External
Internal
Overview
Mount and unmount devices while synchronizing the corresponding /etc/fstab state.
Examples
Mount a Device and Add it to /etc/fstab
- name: mount storage and update /etc/fstab
mount:
state: mounted
path: /mnt/ebs0
src: /dev/xvdb
fstype: xfs