Skip to content

Add PVE LVM Storage #254

Closed Answered by lae
willifehler asked this question in Q&A
Discussion options

You must be logged in to vote

path isn't an accepted attribute in Proxmox's API1. Your YAML looks fine (although indentation seems a bit off) if you remove the path attribute. All this does is configure Proxmox's storage configuration, though. It does not create the actual LVM volume group, which I assume is what you're attempting to do here?

For that you will want to use the community.general.lvg2 Ansible module, probably as a pre_task or another play that runs before this Proxmox role.

Footnotes

  1. https://pve.proxmox.com/pve-docs/api-viewer/index.html#/storage/{storage}

  2. https://docs.ansible.com/ansible/latest/collections/community/general/lvg_module.html

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lae
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #253 on July 31, 2024 07:28.