Switching to inventory script: some questions

Considering switching from a static hosts file to an inventory script, specifically the new one for Digital Ocean. I had a couple questions.

1. The DO script is in the upcoming 1.3 release. Is it possible to refer to inventory scripts included in Ansible without copying them to /etc/ansible/hosts and making them +x? Would be nice if my inventory scripts auto-updated if I just wanted something already shipped with Ansible. Maybe some sort of token in the hosts file that triggered an inventory plugin, then I'm not stuck symlinking or copying files on change?

2. Flat inventory files let me group hosts. Is it possible to do the same with inventory scripts? I'm not immediately sure how I might indicate that certain DO droplets occupy certain roles.

Thanks.

You can refer to an inventory script in any location, but it must be marked executable.

I’m not prepared to ship the inventory scripts with ansible quite at this time, but I can see that maybe happening in the future. They are basically examples to start from that you may want to adapt, rather than saying “this is what an ec2 inventory script must be”.

Yes, inventory scripts support groups just fine. See the API page of the documentation for how that all works.