Skip to content

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

License

Notifications You must be signed in to change notification settings

mario-slowinski/disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

[email protected]

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published