Skip to content

Ansible role to format and mount disks/volumes

License

Notifications You must be signed in to change notification settings

rolehippie/volume

Repository files navigation

volume

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to format and mount disks/volumes.

Sponsor

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

volume_partitions

List of volume partitions

Default value

volume_partitions: []

Example usage

volume_partitions:
  - name: mysql
    number: 1
    path: /var/lib/mysql
    filesystem: ext4
    device: /dev/sdb
    options:
      - discard
      - nofail
      - defaults
  - name: foobar
    number: 1
    path: /var/lib/foobar
    filesystem: ext4
    device: /dev/sdc
    state: present
    part_start: 0%
    part_end: 100%
    part_type: primary
    unit: %
    flags: []
    options:
      - discard
      - nofail
      - defaults

Discovered Tags

volume

Dependencies

License

Apache-2.0

Author

Thomas Boerger