LVG Module is not working on AWX 19.5.0

345 views
Skip to first unread message

takshika jambhule

unread,
Jul 13, 2022, 11:05:07 AM7/13/22
to AWX Project
I have a playbook which is using lvg module, it works fine on 14.1.0. But shows syntax error on Awx 19.5.0.

playbook is as below:-
 ---
- hosts: localhost
  become: true
  become_user: root
  tasks:
  - name: datavg volume group creation
    lvg:
      vg: datavg
      pvs: /dev/sdc
------------------------------------------------------------------
Error:
ERROR! couldn't resolve module/action 'lvg'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/project/lvg.yml': line 8, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:

tasks:
- name: datavg volume group creation
^ here
------------------------------------------------------------------

Can someone suggest what can possibly the reason behind this. 

AWX Project

unread,
Jul 13, 2022, 3:28:10 PM7/13/22
to AWX Project
HI!

In new AWX versions, all jobs run in a container, the default being based on the AWX-EE image. This image does not have the LVG module included, as that belongs to the community.general collection. 
You will need to build your own EE. For information on how to do that, see https://ansible-builder.readthedocs.io/en/stable/

In some cases you can get by with adding your specific module needs to collections/requirements.yml (in your project folder), as described here https://docs.ansible.com/automation-controller/latest/html/userguide/projects.html#collections-support
However, if your module requires specific system-level dependencies, you'll need to build a custom EE.

AWX Team

Reply all
Reply to author
Forward
0 new messages