People your support, i’m trying to create a VM with a playbook. I can create the VM all good there the issue is when I try to add a volume using LVM it fails all the time.
The playbook is:
- name: Create a physical volume on /dev/sdb
lvg:
vg: vg_data
pvs: /dev/sdb
state: present
and is returns:
fatal: [localhost]: FAILED! => {
“changed”: false,
“err”: " Device /dev/sdb excluded by a filter.\n",
“invocation”: {
“module_args”: {
“force”: false,
“pesize”: “4”,
“pv_options”: “”,
“pvresize”: false,
“pvs”: [
“/dev/sdb”
],
“state”: “present”,
“vg”: “vg_data”,
“vg_options”: “”
}
},
“msg”: “Creating physical volume ‘/dev/sdb’ failed”,
“rc”: 5
}
I tried two flavors (CentOS and RockyLinux) and get the same error.
did someone face this?