Hi everyone!
I’m developing a new collection to backup the configuration files from hp switches.
I developed the collection following this guide: Creating collections — Ansible Documentation .
The modules i’ve wrote are ok and they work fine (i tested them as single module), but when i try them through the collection i receive this error:
I don’t understand! My collection is under ansible_collection!
It seems like it does not see the ‘hpswitch’ directory.
path: /home/rubber/.ansible/collections/ansible_collections/hpnetworks/hpswitch)
I try to the create the same collection but in another directory (/home/rubber/Desktop/prova//collections/ansible_collections/hpnetworks/hpswitch) but it does not work.
Playbook from which i test the collection:
- hosts: x
collections:
- hpnetworks.hpswitch
tasks:
- name: backup running-config
hpswitch_config:
backup: True
Can anyone help me please?