gcoop-libre.volumes

Volumes

This is an Ansible Role for attaching volumes and devices to GNU/Linux systems.

Requirements

None.

Role Variables

Here are the available variables with their default values (see defaults/main.yml):

volumes_defaults:
  fstype: ext4
  opts: noatime,errors=remount-ro
  dump: 0
  passno: 2
  state: mounted
  fstab: /etc/fstab

These properties set the default values for the volumes listed that don't have specific values provided.

volumes:
  - dev: /dev/sda1
    mount_point: /data
    fstype: ext4
    opts: noatime,errors=remount-ro
    dump: 0
    passno: 2
    state: mounted
    fstab:/etc/fstab

This is a list of volumes or devices that should be attached. Each entry must include at least dev and mount_point properties. If other properties are not defined, they will use the default values. These correspond to the options of the mount module.

Dependencies

None.

Example Playbook

- hosts: vps
  roles:
    - role: gcoop-libre.volumes
      volumes:
        - dev: /dev/vda
          mount_point: /data

License

GPLv2

Author Information

This role was created in 2016 by gcoop Cooperativa de Software Libre.

Informazioni sul progetto

Mount volumes and devices

Installa
ansible-galaxy install gcoop-libre.volumes
Licenza
gpl-2.0
Download
1.9k