Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your Ansible version is lower than 2.5.0 (with ansible 2.10.2) #389

Open
howardjones opened this issue Oct 27, 2020 · 3 comments
Open

Your Ansible version is lower than 2.5.0 (with ansible 2.10.2) #389

howardjones opened this issue Oct 27, 2020 · 3 comments

Comments

@howardjones
Copy link

With azure.azure_preview_modules, 2.9.1 I get an error when I include the azure.azure_preview_modules role in my playbook:

TASK [azure.azure_preview_modules : debug] **************************************************************************************************************************************************************
ok: [localhost] => {
    "msg": [
        "Your Ansible version is lower than 2.5.0",
        "You may need to perform additional steps to install this roles:",
        "  sudo pip install -r /home/howie/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "or",
        "  pip install --user -r /home/howie/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "depending on your ansible setup."
    ]
}

Thing is, (a) I just did install those requirements (in my Python 3.8.0 venv in case it's important) and (b) I have ansible 2.10.2 installed! (it also downgraded a bunch of azure sdk versions from the ones that ansible itself pulled in)

I was hoping to be able to use the azure_keyvault_secret lookup in a playbook...

@james-flynn-ie
Copy link

james-flynn-ie commented May 7, 2021

The same issue is occurring for me on v2.9.1 as well:

task path: /root/.ansible/roles/azure.azure_preview_modules/tasks/main.yml:8
ok: [localhost] => {
    "msg": [
        "Your Ansible version is lower than 2.5.0",
        "You may need to perform additional steps to install this roles:",
        "  sudo pip install -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "or",
        "  pip install --user -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "depending on your ansible setup."
    ]
}

I can confirm that pip install -r has been run prior to executing the playbook.

Ansible version info:

ansible 2.10.9
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]

@haiyuazhang / @zikalino / @yungezz , are there any updates on this issue (or a possible workaround), as it is blocking our ability to deploy resources on Azure using Ansible?

@faizan002
Copy link

Any update on this?
I have issue with :
ansible 2.10.13
python version = 3.8.5

@TheTechOddBug
Copy link

I'm having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants