Skip to content

rodjanasak/ansible-role-disk-part

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Ansible role to partition an disk, LV or not, in Linux systems.

Requirements

Ansible>=2.1

Role Variables

disk_devices: - disk: /dev/nvme0n1 device: /dev/nvme0n1 lv: yes fs_type: ext4 mount_opts: defaults,nobootwait mount_state: mounted mount: /opt/ mount_user: marco mount_group: admin

disk_lvol:
- vg_name: vg_opt
  vg_pv: /dev/nvme0n1
  lv_dev:
    - device: /dev/vg_opt/opt
      name: data
      size: '100%VG'
      force: yes
      fs_type: ext4
      mount_opts: defaults,nobootwait
      mount_state: mounted
    mount: /data/

Dependencies

None

Example Playbook

- name: Playbook sample to disk partition
  hosts: host-test
  become: yes
  gather_facts: yes

  roles:
    - disk-part

License

Apache-2.0

Author Information

Chaordic Systems, Cloud Team.

About

Ansible Role for partition disk in Linux systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published