mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-02-04 08:49:13 +03:00
Merge branch 'Aethylred-fsopts'
This commit is contained in:
14
.github/workflows/molecule.yml
vendored
14
.github/workflows/molecule.yml
vendored
@@ -10,25 +10,21 @@ on:
|
|||||||
- develop
|
- develop
|
||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
build:
|
||||||
# The type of runner that the job will run on
|
runs-on: ubuntu-latest
|
||||||
runs-on: macos-10.15
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 4
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8]
|
python-version: [3.9]
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ lvm_groups: []
|
|||||||
# size: 40g
|
# size: 40g
|
||||||
# create: true
|
# create: true
|
||||||
# filesystem: ext4
|
# filesystem: ext4
|
||||||
|
# # Defines options passed to the filesystem creation command
|
||||||
|
# fsopts:
|
||||||
# mount: true
|
# mount: true
|
||||||
# mntp: /
|
# mntp: /
|
||||||
# - vgname: test-vg
|
# - vgname: test-vg
|
||||||
@@ -57,6 +59,20 @@ lvm_groups: []
|
|||||||
# lvnames:
|
# lvnames:
|
||||||
# # Set to None to only create LVM VG w/out creating LVM LVOLS
|
# # Set to None to only create LVM VG w/out creating LVM LVOLS
|
||||||
# - None
|
# - None
|
||||||
|
# # Using fsopts to create a docker compatible xfs volume
|
||||||
|
# - vgname: docker-volumes
|
||||||
|
# disks:
|
||||||
|
# - /dev/vdc
|
||||||
|
# - /dev/vdd
|
||||||
|
# create: true
|
||||||
|
# lvnames:
|
||||||
|
# - lvname: docker_1
|
||||||
|
# size: 100%FREE
|
||||||
|
# create: true
|
||||||
|
# filesystem: xfs
|
||||||
|
# fsopts: -n ftype=1
|
||||||
|
# mount: true
|
||||||
|
# mntp: /var/lib/docker
|
||||||
|
|
||||||
# Defines if LVM will be managed by role
|
# Defines if LVM will be managed by role
|
||||||
# default is false to ensure nothing is changed by accident.
|
# default is false to ensure nothing is changed by accident.
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
filesystem:
|
filesystem:
|
||||||
fstype: "{{ lv.filesystem }}"
|
fstype: "{{ lv.filesystem }}"
|
||||||
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
||||||
|
opts: "{{ lv.fsopts | default(omit) }}"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- mountedxfs is failed
|
- mountedxfs is failed
|
||||||
|
|||||||
Reference in New Issue
Block a user