Jun 13, 2021 · When I install Azure extension with pip install 'ansible[azure] and try to run a playbook with ansible-playbook playbook.yml I get the following error: ModuleNotFoundError: No module named 'msrest' And it also mentions Failed to import the required Python library (msrestazure) I got this procedure from the official ansible docs for Azure.
Ansible K8s module: Failed to import the required Python library (openshift) on Python /usr/bin/python3 . The env. Ansible 2.9.6 (python3) Tried to run a simple playbook ... Azure Flask Routes Not found ...
Can not get the Ansible Azure Modules to work. I follow the -> https: ... Failed to import the required Python library (msrestazure) [BUG] urskog84 opened this issue a year ago · 4 comments. Petter Fors commented a year ago 0. Can not get the Ansible Azure Modules to work.
12.06.2019 · sudo pip install ansible [azure] Then create the credentials file in the path ~/.azure/ with your service principal. And when you install the ansible [azure], the packages msrest and msrestazure is already installed. So you do not need to install them again. Then you can try to create the resource group again. Share.
May 19, 2021 · Do you have correct instructions for working on ansible for azure workloads? ... {"changed": false, "msg": "Failed to import the required Python library ...
19.05.2021 · Do you have correct instructions for working on ansible for azure workloads? ... FAILED! => {"changed": false, "msg": "Failed to import the required Python library (packaging) on ...
Jun 12, 2019 · sudo pip install ansible [azure] Then create the credentials file in the path ~/.azure/ with your service principal. And when you install the ansible [azure], the packages msrest and msrestazure is already installed. So you do not need to install them again. Then you can try to create the resource group again. Share.
OS: Linux Mint 19.3 , 4.15.0-99-generic python2 version: Python 2.7.17 python3 version: Python 3.6.9 lxml version: lxml==4.5.0. STEPS TO REPRODUCE. install ansible with python3 support. sudo -H python3 -m pip install ansible. check the ansible is using the right python3 version.
Thanks for the report! This was identified previously and a fix has been merged ().The changes should be deployed next week. Sorry for the inconvenience.
26.03.2020 · I am wondering if these libs should be installed on your ansible executor or your "master", as described in your hosts field. Could you do a kubectl use-context <your context>, add a "delegate_to: localhost" at the end of k8s module and try it?This is assuming your executor can connect to kube using kubectl. k8s also accepts a field called "context" which allows you to …