klems.partition-and-mount-disks
klems.partition-and-mount-disks
ハードディスクのパーティションを作成し、マウントするための役割で、自動的にUUIDを検出します。
要件
Ansible == 2.4
役割の変数
{{ additional_disks }}
以下の項目を含む辞書のリストです:
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
依存関係
なし
例プレイブック
- hosts: servers
roles:
- { role: klems.partition-and-mount-disks }
ライセンス
BSD
著者情報
メール: klems@klems.net