The only option that I can think of:
pip install https://github.com/ansible/ansible/archive/devel.tar.gz
git clone https://github.com/ansible-collections/community.aws.git
cp community.aws/plugins/modules/my_module.py ~/.ansible/plugins/modules/

edit  ~/.ansible/plugins/modules/my_module.py and then copy it back to git
repository to commit and push.

Any elegant solution ?
How you guys at ansible have setup the development environment to develop
amazon.aws ?

Thanks


On Thu, 4 Jun 2020 at 19:15, Sydo Luciani <[email protected]> wrote:

> Thank you Matt, that worked, eventhough the collection is behind the
> github repository.
>
> Any recommendation or guidance on setting up development environment will
> be highly appreciated.
> I did follow below document to set up development environment, but
> considering changes in ansible repository structure, not applicable for
> community modules any more:
>
> https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#common-environment-setup
>
>
>
>
>
> On Thu, 4 Jun 2020 at 16:35, Matt Martz <[email protected]> wrote:
>
>> Collections are not pip installable.
>>
>> Instead you want to do:
>>
>> pip install https://github.com/ansible/ansible/archive/devel.tar.gz
>> ansible-galaxy collection install amazon.aws
>>
>> On Thu, Jun 4, 2020 at 4:32 PM Sydo Luciani <[email protected]>
>> wrote:
>>
>>> Thank you for quick reply.
>>>
>>> What is the procedure to install Ansible version 10 along with
>>> amazon.aws and community.aws
>>>
>>> I was able to install Ansible version 10 from repository:
>>> pip install git+https://github.com/ansible/ansible.git
>>>
>>> but getting error installing modules from community.aws:
>>> pip install git+https://github.com/ansible-collections/community.aws.git
>>>
>>> community.aws.git does not have all required files to be installable by
>>> pip.
>>>
>>>
>>> Thanks
>>>
>>> On Wednesday, 3 June 2020 10:47:15 UTC-5, Matt Martz wrote:
>>>>
>>>> Largely the split was done between what was previously "core" supported
>>>> and what was community supported.
>>>>
>>>> amazon.aws is supported by Red Hat/Ansible employees, and community.aws
>>>> is technically supported by the community.
>>>>
>>>> New modules/plugins should almost definitely be submitted to
>>>> community.aws, and if it is deemed it should be supported, it can be moved
>>>> at a later date.
>>>>
>>>> On Wed, Jun 3, 2020 at 10:40 AM Sydo Luciani <[email protected]>
>>>> wrote:
>>>>
>>>>> aws modules have been redirected/moved to two different repositories,
>>>>> some to community.aws and some to amazon.aws
>>>>>
>>>>> https://github.com/ansible-collections/amazon.aws
>>>>> https://github.com/ansible-collections/community.aws
>>>>>
>>>>>
>>>>> My first question is, what was the criteria for moving each modules to
>>>>> different repositories ? so we know the correct place to submit future aws
>>>>> modules !!! is there a change log for this move ?
>>>>>
>>>>> My second question is for those with more experience with Ansible and
>>>>> github:
>>>>> isn't better to make the amazon.aws plugin directory be the sub
>>>>> repository/sub module/fork or mirror of community.aws plugin directory ?
>>>>> this way modules and plugins version and code stay the same in both, while
>>>>> one will be used as collection and one as module !!!!
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> 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/CAJspodgXNZsv1BvE1GtTWPrLW_b9o-wAs%3Dt5np1-xa1kKJJ%3D2w%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/ansible-project/CAJspodgXNZsv1BvE1GtTWPrLW_b9o-wAs%3Dt5np1-xa1kKJJ%3D2w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> Matt Martz
>>>> @sivel
>>>> sivel.net
>>>>
>>> --
>>> 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/8477201e-a72a-45a5-a610-1d795fe21199o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/8477201e-a72a-45a5-a610-1d795fe21199o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Matt Martz
>> @sivel
>> sivel.net
>>
>> --
>> 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/CAD8N0v8JdgJSqP7b8GFqnp7ViWnPDqXJHBQUyrz0hiDSmR1hvg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAD8N0v8JdgJSqP7b8GFqnp7ViWnPDqXJHBQUyrz0hiDSmR1hvg%40mail.gmail.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/CAJspodjzBiXuC3XXLXPQf5EdLzkS%3Dk0do5a8wHao2iGGjaLOkA%40mail.gmail.com.

Reply via email to