fix badges and readme
This commit is contained in:
parent
2daa5ecb9f
commit
c9e6bc130a
66
README.md
66
README.md
|
@ -1,66 +1,16 @@
|
|||
# xoxys.lvm
|
||||
|
||||
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.lvm/status.svg)](https://drone.rknet.org/ansible/xoxys.lvm)
|
||||
[![Build Status](https://img.shields.io/drone/build/ansible/xoxys.lvm?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.lvm)
|
||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE)
|
||||
|
||||
Configure a list of LVM volumes.
|
||||
|
||||
Configure a list of LVM volumes
|
||||
You can find the full documentation at [galaxy.geekdocs.de](https://galaxy.geekdocs.de/system/lvm/).
|
||||
|
||||
## Table of content
|
||||
### License
|
||||
|
||||
* [Default Variables](#default-variables)
|
||||
* [lvm_packages](#lvm_packages)
|
||||
* [lvm_volumes](#lvm_volumes)
|
||||
* [Dependencies](#dependencies)
|
||||
* [License](#license)
|
||||
* [Author](#author)
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
|
||||
---
|
||||
### Maintainers and Contributors
|
||||
|
||||
## Default Variables
|
||||
|
||||
### lvm_packages
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
lvm_packages:
|
||||
- lvm2
|
||||
```
|
||||
|
||||
### lvm_volumes
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
lvm_volumes: []
|
||||
```
|
||||
|
||||
#### Example usage
|
||||
|
||||
```YAML
|
||||
lvm_volumes:
|
||||
- name: lv_data
|
||||
group: vg_data
|
||||
disks:
|
||||
- /dev/sda
|
||||
fstype: ext4
|
||||
size: 100g
|
||||
resizefs: True
|
||||
mountpoint: /mnt/data
|
||||
mountopts:
|
||||
- ro
|
||||
- noauto
|
||||
state: present
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
## Author
|
||||
|
||||
[xoxys](https://gitea.rknet.org/xoxys)
|
||||
[Robert Kaussow](https://gitea.rknet.org/xoxys)
|
||||
|
|
|
@ -15,5 +15,5 @@ lvm_packages:
|
|||
# mountopts:
|
||||
# - ro
|
||||
# - noauto
|
||||
# state: present
|
||||
# state: mounted
|
||||
lvm_volumes: []
|
||||
|
|
|
@ -3,6 +3,13 @@
|
|||
galaxy_info:
|
||||
# @meta author:value: [xoxys](https://gitea.rknet.org/xoxys)
|
||||
author: xoxys <mail@geeklabor.de>
|
||||
# @meta description: >
|
||||
# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.lvm)
|
||||
# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.lvm?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.lvm)
|
||||
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE)
|
||||
#
|
||||
# Mount a list of Samba shares.
|
||||
# @end
|
||||
description: Configure a list of LVM volumes
|
||||
license: MIT
|
||||
min_ansible_version: 2.4
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
src: "/dev/mapper/{{ item.group }}-{{ item.name }}"
|
||||
fstype: "{{ item.fstype | default('ext4') }}"
|
||||
opts: "{{ item.mountopts | default([]) | join(',') or omit }}"
|
||||
state: "{{ 'mounted' if item.state | default('present') == 'present' else 'absent' }}"
|
||||
state: "{{ item.state | default('mounted') }}"
|
||||
loop: "{{ lvm_volumes }}"
|
||||
loop_control:
|
||||
label: "mount: /dev/mapper/{{ item.group }}-{{ item.name }} {{ item.mountpoint }} {{ item.fstype | default('ext4') }}{% if item.mountopts is defined %} {{ item.mountopts | join(',') }}{% endif %}"
|
||||
|
|
Loading…
Reference in New Issue