Module path error

10 views
Skip to first unread message

Andrew McCartney

unread,
Apr 4, 2022, 11:43:32 PM4/4/22
to Ansible Project
Hello everyone,

I have playbook i use to backup the configuration of a Cisco ASA. It was working great for some time but it now fails with the following message:

TASK [Gathering Facts] ************************************************************************************************************************************
[WARNING]: Ignoring timeout(10) for asa_facts
fatal: [isgq-asa-1_admin]: FAILED! => {"msg": "The module asa_facts was not found in configured module paths"}


I ran the following hoping that it would resolve: 

ansible-galaxy collection install cisco.asa

This completed successfully and collection has been installed to ~/.ansible/collections/ansible_collections however the playbook still fails with the message above. 

Ansible collection path/version details are below: 

COLLECTIONS_PATHS(default) = [u'/home/###/.ansible/collections', u'/usr/share/ansible/collections']

ansible 2.9.27
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/###/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.17 (default, Mar 18 2022, 13:21:42) [GCC 7.5.0]


Any guidance on how to resolve this would be greatly appreciated. 

Thanks

Andrew
Reply all
Reply to author
Forward
0 new messages