Why Ansible molecule path is not detected? molecule: command not found

472 Views Asked by At

I tried to init

molecule init role mikitovcluster

got

molecule: command not found

I listed my collections

ansible-galaxy collection list

# /usr/lib/python3/dist-packages/ansible_collections
Collection                    Version
----------------------------- -------
amazon.aws                    5.4.0  
ansible.netcommon             4.1.0  
ansible.posix                 1.5.1  
ansible.utils                 2.9.0  
ansible.windows               1.13.0 
arista.eos                    6.0.0  

# /home/miki/.ansible/collections/ansible_collections
Collection           Version
-------------------- -------
ansible.posix        1.5.2  
ansible.utils        2.9.0  
community.general    6.5.0  
community.kubernetes 2.0.1  
community.molecule   0.1.0  
kubernetes.core      2.4.0  

Output ansible --version

ansible [core 2.14.4]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/miki/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/miki/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

How it comes that I have two paths for my collections?

0

There are 0 best solutions below