/disk

Ansible role to mange disk partitions, LVM VGs and LVOLs, filesystems and mounts

GNU General Public License v3.0GPL-3.0

disk

Ansible role to manage:

Requirements

Role Variables

  • defaults

    disk_partitions: []   # list of disk partitions to manage
    
    disk_vgs: []          # list of LVM volume groups to manage
        pvs: []           # list of PVS for VG
    
    disk_lvols: []        # list of LVM volumes to manage
    
    disk_filesystems: []  # list of LVM volumes to manage
      opts: []            # list of options passed to mkfs
    
    disk_mounts: []       # list of mounts to manage
      opts: []            # list of options passed to mount
      owner:              # moutpoint path owner
      group:              # moutpoint path group
      mode:               # moutpoint path mode, 
                          # use 0o755 or '0755' notation
      UUID: bool		# use UUID instead of /dev for mounting

Dependencies

There are no dependencies.

Example Playbook

  • requirements.yml

    - name: disk
      src: https://github.com/mario-slowinski/disk
  • playbook usage

    - hosts: servers
      gather_facts: false
      roles:
        - role: disk
          tasks_from: mount.yml 
          # manage only mounts, same effect if only disk_mounts is defined

License

GPL-3.0

Author Information

mario.slowinski@gmail.com