Getting the following error when trying to install the ansible windows collection.
I am running Ansible 2.9.6 from pip3 on CentOS 8.
$ ansible-galaxy collection install ansible.windows Process install dependency map ERROR! Cannot meet requirement * for dependency ansible.windows from source 'https://galaxy.ansible.com/api/'. Available versions before last requirement added: Requirements from: base - 'ansible.windows:*'
I also tried from the rpm version of ansible. Same issue.
That is because the ansible.windows collection because the current released versions at https://galaxy.ansible.com/ansible/windows are all beta versions. The ansible-galaxy cli tool does not use any pre-release versions in it’s check and the only way to install it is to explicitly set the version like
Once a proper release is out then the install command will select the latest non-prerelease version as expected but for you now you need to explicitly opt in.
I also forgot to mention that while some components may work in 2.9 this collection will not be tested against this version and will officially be designed to work with 2.10 onwards.
If you are wanting to play around with things there’s no harm in it. If you are wanting to use it in production I would wait until some of the kinks are ironed out and 2.10 is officially released.
That’s not to say you can use it side by side and selectively try out various modules in the collection if you want to use a newer version.