The doc site is not up to speed with the latest in the stable-2.0 branch. If it were, you would see a note explaining the following:
Note
The login command in Ansible 2.0 requires using the Galaxy 2.0 Beta site. Use the--server
option to access https://galaxy-qa.ansible.com. You can also add a server definition in the [galaxy] section of your ansible.cfg file.
So as the above note explains, the login command only works with the beta site. This is true for import, delete and setup commands as well.
Apologies for the confusion. I’ll see what we can do to update the doc site.
–Chris
Thanks for the quick response Chris !
B