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

keyvault_create.yml: azure_preview_modules reports Ansible version < 2.5.0, when version is 2.10.9 #88

Open
james-flynn-ie opened this issue May 7, 2021 · 0 comments · May be fixed by Azure/azure_preview_modules#395

Comments

@james-flynn-ie
Copy link

james-flynn-ie commented May 7, 2021

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

On an Ubuntu 18.04 Docker container with Ansible v2.10.9 installed:

  1. Run: ansible-galaxy install azure.azure_preview_modules
  2. Run: pip3 install -r ~/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt
  3. Run ansible-playbook -vvvvv keyvault_create.yml.
    Observe output:
TASK [azure.azure_preview_modules : debug] *********************************************************************************************************************task path: /root/.ansible/roles/azure.azure_preview_modules/tasks/main.yml:7
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."
    ]
}
  1. Run command: ansible --version :
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]

Any log messages given by the failure

TASK [azure.azure_preview_modules : debug] *********************************************************************************************************************task path: /root/.ansible/roles/azure.azure_preview_modules/tasks/main.yml:7
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."
    ]
}

Expected/desired behavior

If Ansible version >= 2.5.0, then message "Your Ansible version is lower than 2.5.0" should not be outputted.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Linux Ubuntu

Versions

18.04

Mention any other details that might be useful

Azure/azure_preview_modules#389


Thanks! We'll be in touch soon.

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

Successfully merging a pull request may close this issue.

1 participant