# Ansible LVM module issue

**URL:** <https://forum.ansible.com/t/ansible-lvm-module-issue/35965>\
**Category:** AWX Project\
**Tags:** rhel, awx\
**Created:** [November 4, 2021, 3:25pm UTC](https://forum.ansible.com/t/ansible-lvm-module-issue/35965 "2021-11-04T15:25:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Selormey](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jonathan\_Selormey](https://forum.ansible.com/u/Jonathan_Selormey)\
**Post date:** [November 4, 2021, 3:25pm UTC](https://forum.ansible.com/t/ansible-lvm-module-issue/35965/1 "2021-11-04T15:25:43Z")

</div>

I’m having an issue with an ansible module, specifically the LVM module (lvol). When I execute my Ansible code from my local system everythinig works according but when I try it from an AWX job template I get the following error:

“reason”: “couldn’t resolve module/action ‘lvol’. This often indicates a misspelling, missing collection, or incorrect module path.\n\nThe error appears to be in ‘/runner/project/roles/base-linux/tasks/lvm.yml’: line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Extend the LV\n ^ here\n”

This is the specific code I’m trying to execute…

- name: Resize sda  
command: /usr/sbin/parted /dev/sda resizepart 2 100%

- name: Resize PV  
command: /usr/sbin/pvresize /dev/sda2

- debug:  
var: ansible\_lvm

- name: Extend the LV  
lvol:  
vg: “{{ ansible\_lvm[‘lvs’][‘root’].vg }}”  
lv: root  
size: 100%VG  
resizefs: true  
ignore\_errors: yes

ENVIRONMENT- AWX version: 19.1.0

- AWX install method: operator
- AWX deployment target: minikube
- Operating System: RHEL 7
