Skip to content
Advertisement

I am having some issue while creating VM from ansible

I am using Ansible version2. 2.9.9 and Python version 3.6.9; and I have installed requests modules too but every time I run my code I ger error of Mo Module name requests, I have changed the ansible_pythin_interpreter to python 3 as well but it didn’t heled me. Please go through my code and help me here.

JavaScript

I have uploaded my code as well

JavaScript

Advertisement

Answer

You have to install requests library. You can install it by just entering this command in CMD or Terminal.

JavaScript

It will fix ImportError: No module named 'requests'

Advertisement