[Python] Could not find imported module support code for version in ansible 2.9.27

Discussão em 'Python' iniciado por Stack, Janeiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    I have a test environment created on CENTOS 7.9 with a quite old python 2.7.5 and ansible 2.9.27 on it. I faced a really strange issue with my ansible module community.general.filesystem that I believe should working fine also on that old setup:


    TASK [Create filesystem for orainventory ora_inv] ****************************************************************************************************************************************************** fatal: [ansibletargetprd]: FAILED! => {"msg": "Could not find imported module support code for version. Looked for either LooseVersion.py or version.py"}
    ​

    In playbook:

    - name: Create filesystem for orainventory ora_inv
    community.general.filesystem:
    fstype: xfs
    dev: /dev/orabinvg/ora_inv


    I did install community.general, and for example, the creation of /dev/orabinvg/ora_inv is done by community.general.lvol, and is working fine.

    Any ideas?

    Continue reading...

Compartilhe esta Página