Ansible Module mount

From NovaOrdis Knowledge Base
Revision as of 06:53, 12 December 2019 by Ovidiu (talk | contribs) (→‎Mount a Device and Add it to /etc/fstab)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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