This role is able to create a disk partition, add it to VG, create an LV, mount the fs and add permissions. Use booleans to activate/deactivate functions.
This role requires Ansible 2.2 or higher, and platform requirements are listed in the metadata file.
Available variables are listed below, along with default values:
Should I create a patition table or partition the disk?
partion_disk: false
label: msdos
parted_optimization: optimal
partitions:
- {'partition_type': 'primary', 'start_point': '0%', 'end_point': '100%'}
create_vg: false
create_lv: false
fs_manage: false
profile: empty
fstype_OS: rhel7-xfs/rhel6-ext4/rhel5-ext3 - or you can set with variable
profile: list_name
list_name:
- device: "/dev/sdc"
pvname: "/dev/sdc1"
vgname: VolumeGroupNameVG
lvs:
- { lvname: fs01_lv, size: 60G, fstype: "{{ fstype_OS }}", mntpoint: "/fs01", user: user, group: user }
- { lvname: fs02_lv, size: 10G, fstype: "{{ fstype_OS }}", mntpoint: "/fs01/fs02", user: user, group: user }
There is no dependencies with other roles.
- Create filesystem structure for weblogic server.
- Create filesystem structure for weblogic and apache server, using the same role twice.
GPLv3