Azure / azure_preview_modules

Azure preview modules for Ansible
https://galaxy.ansible.com/azure/azure_preview_modules
43 stars 49 forks source link

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

Open howardjones opened 3 years ago

howardjones commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

TheTechOddBug commented 2 years ago

I'm having the same issue.