amtega.parted
Ansible Role for Disk Management
This is an Ansible role that manages disk partitions using the parted module.
Role Variables
You can find a list of default variables for this role in defaults/main.yml
.
Usage
Here is an example playbook:
---
- hosts: all
roles:
- amtega.parted
vars:
parted_disks_sample:
- device: /dev/sdb
number: 1
part_type: primary
state: present
parted_disks_load_from_hostvars: yes
Testing
To test this role, we use molecule with vagrant virtual machines.
cd amtega.parted
molecule test --all
License
Copyright (C) 2022 AMTEGA - Xunta de Galicia
This role is free software: you can share and change it under the terms of:
GNU General Public License version 3 or later, or the European Union Public License (Version 1.2 or later).
This role is provided to be useful but comes WITHOUT ANY WARRANTY; no implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License or European Union Public License for more details.
Author Information
- José Enrique Mourón Regueira.