Created a new module in
"~/ansible_dev/ansible_collections/community/aws/plugins/modules", but
neither ansible-playbook nor ansible-doc finds the new module. for the sake
of test, copied a module to new name, to make sure it is not related to
module content, and original module can be found, but not the new one.

ansible-doc -t module testing_module

Checking collections development document:
https://docs.ansible.com/ansible/latest/dev_guide/developing_collections.html

but can't find any thing about adding a new module.

What am I missing ?

Thanks


On Thu, 4 Jun 2020 at 22:10, Jordan Borean <[email protected]> wrote:

> You've identified one of the many annoying parts of collections. You need
>> a special directory structure and you can't install from git in an editable
>> manner.
>
>
> Admittedly you are right about the special directory structure but it's
> pretty trivial to install it from git in an editable manner. I do this for
> the Windows collections;
>
> # Usually I have this in my ~/.bashrc where the last segment is my dev
> location
> export ANSIBLE_COLLECTIONS_PATHS=~/.ansible/collections:/usr/share/ansible
> /collections:~/ansible-dev
> git clone [email protected]:ansible-collections/ansible.windows.git ~
> /ansible-dev/ansible_collections/ansible/windows
>
> I won't lie and say this is a perfect scenario but it's just 2 commands,
> one of which can be set automatically in your profile.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/c3c6a188-ff2c-4d5c-be96-774ce225023fo%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c3c6a188-ff2c-4d5c-be96-774ce225023fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJspodimWwD2Tgo4Go5dPXVepjnTiEuU7T3ooO8LRAwU2Vm6Eg%40mail.gmail.com.

Reply via email to