klems.partition-and-mount-disks
klems.partition-and-mount-disks
This is a role to partition and mount hard drives automatically, detecting their UUIDs.
Requirements
- Ansible version:
2.4
Role Variables
additional_disks
This is a list of dictionaries that should include these details:
additional_disks:
- disk: /dev/sda
number: 1
state: present
part_start: "0%"
part_end: "100%"
fstype: ext4
mount_path: "/mnt/storagebox-01"
mount_state: mounted
mount_opts: noatime
- disk: /dev/sdb
number: 1
state: present
part_start: "0%"
part_end: "100%"
fstype: ext4
mount_path: "/mnt/storagebox-02"
mount_state: mounted
mount_opts: noatime
Dependencies
- None
Example Playbook
Here’s how you can use it in an Ansible playbook:
- hosts: servers
roles:
- { role: klems.partition-and-mount-disks }
License
- BSD
Author Information
- Email: klems@klems.net
Informazioni sul progetto
A role to partition and mount a list of hard drives disks with automatic UUID detection.
Installa
ansible-galaxy install klems.partition-and-mount-disks
Licenza
Unknown
Download
2.8k
Proprietario