ansible windows

41 views
Skip to first unread message

Andrew Meyer

unread,
Mar 13, 2020, 1:16:51 PM3/13/20
to Ansible Project
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.

Jordan Borean

unread,
Mar 13, 2020, 5:03:18 PM3/13/20
to Ansible Project
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

ansible-galaxy collection install ansible.windows:0.0.1-beta.2

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.

Jordan Borean

unread,
Mar 13, 2020, 5:03:56 PM3/13/20
to Ansible Project
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.

Andrew Meyer

unread,
Mar 13, 2020, 5:09:17 PM3/13/20
to Ansible Project
Would it be wise to wait for 2.10?

Jordan Borean

unread,
Mar 13, 2020, 5:21:13 PM3/13/20
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages