{"id":19402391,"url":"https://github.com/robertdebock/ansible-role-lvm","last_synced_at":"2025-04-24T07:31:51.299Z","repository":{"id":41306480,"uuid":"331240673","full_name":"robertdebock/ansible-role-lvm","owner":"robertdebock","description":"Configure Logical Volumes Management (lvm), group and volumes.","archived":false,"fork":false,"pushed_at":"2024-04-26T13:59:57.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T02:19:52.921Z","etag":null,"topics":["ansible","lvm","molecule","playbook","system","tox"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"robertdebock"}},"created_at":"2021-01-20T08:27:59.000Z","updated_at":"2024-05-27T11:28:23.585Z","dependencies_parsed_at":"2023-02-15T07:20:55.054Z","dependency_job_id":"31c49200-0157-42b4-b67f-42ad300c102b","html_url":"https://github.com/robertdebock/ansible-role-lvm","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-lvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-lvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-lvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-lvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-lvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223944921,"owners_count":17229542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","lvm","molecule","playbook","system","tox"],"created_at":"2024-11-10T11:23:28.234Z","updated_at":"2024-11-10T11:23:28.873Z","avatar_url":"https://github.com/robertdebock.png","language":null,"funding_links":["https://github.com/sponsors/robertdebock"],"categories":[],"sub_categories":[],"readme":"# [Ansible role lvm](#lvm)\n\nConfigure Logical Volumes Management (lvm), group and volumes.\n\n|GitHub|GitLab|Downloads|Version|\n|------|------|---------|-------|\n|[![github](https://github.com/robertdebock/ansible-role-lvm/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-lvm/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-lvm/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-lvm)|[![downloads](https://img.shields.io/ansible/role/d/robertdebock/lvm)](https://galaxy.ansible.com/robertdebock/lvm)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-lvm.svg)](https://github.com/robertdebock/ansible-role-lvm/releases/)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-lvm/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: true\n  gather_facts: true\n\n  roles:\n    - role: robertdebock.lvm\n      # It's difficult to test this in CI.\n      # lvm_volume_groups:\n      #   - name: first\n      #     pvs:\n      #       - /dev/loop0\n\n      # There is no device mapper in containers.\n      # lvm_logical_volumes:\n      #   - name: first\n      #     vg: first\n      #     size: 100%FREE\n      #     opts: --type cache-pool\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-lvm/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: true\n  gather_facts: false\n\n  roles:\n    - role: robertdebock.bootstrap\n\n  # tasks:\n  #   - name: create disk.img\n  #     command: dd if=/dev/zero of=/disk.img bs=1M count=100\n  #     args:\n  #       creates: /disk.img\n\n  #   - name: create /dev/loop0\n  #     command: mknod /dev/loop0 b 7 8\n  #     args:\n  #       creates: /dev/loop0\n  #     notify:\n  #       - link disk.img to /dev/loop0\n\n  # handlers:\n  #   - name: link disk.img to /dev/loop0\n  #     command: losetup /dev/loop0 /disk.img\n```\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-lvm/blob/master/defaults/main.yml):\n\n```yaml\n---\n# defaults file for lvm\n\n# Per lvm a size can be set, if it's not set, use this value.\nlvm_default_pesize: 32\n\n# A list of volume groups.\n# lvm_volume_groups:\n#   - name: first\n#     pvs:\n#       - /dev/sdb1\n#   - name: second\n#     pvs:\n#       - /dev/sdb2\n#     pesize: 128K\n#   - name: third\n#     pvs:\n#       - /dev/sdb3\n#       - /dev/sdb4\n\n# A list of volumes.\n# lvm_logical_volumes:\n#   - name: first\n#     vg: first\n#     size: 512\n#     opts: --type cache-pool\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-lvm/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub | GitLab |\n|-------------|--------|--------|\n|[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)|\n\n## [Context](#context)\n\nThis role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-lvm/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|\n|[Fedora](https://hub.docker.com/r/robertdebock/fedora)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n\nThe minimum version of Ansible required is 2.12, tests have been done to:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-lvm/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/robertdebock/ansible-role-lvm/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[robertdebock](https://robertdebock.nl/)\n\nPlease consider [sponsoring me](https://github.com/sponsors/robertdebock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-lvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-lvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-lvm/lists"}