Ansible needs the python pexpect package. On Fri, 20 Nov 2020 at 00:09, Prathap Dasari <[email protected]> wrote:
> Hi, > > The package already installed on the remote host but still, it´s failing > with the above error. > [root@sejenk01 ~]# yum install pexpect > Loaded plugins: ulninfo > Package pexpect-2.3-11.el7.noarch already installed and latest version > Nothing to do > > Regards, > Prathap > > On Thu, Nov 19, 2020 at 11:45 PM Dick Visser <[email protected]> > wrote: > >> Hi >> >> On Thu, 19 Nov 2020 at 21:04, Prathap Dasari <[email protected]> >> wrote: >> > >> > SUMMARY >> > >> > We are getting below errors if using the except module in the ansible >> playbooks. >> >> Did you actually read the error? It says exactly what is wrong, with >> hints on how to fix it: >> >> > An exception occurred during task execution. To see the full traceback, >> use -vvv. The error was: ImportError: No module named ptyprocess fatal: >> [sejenk01]: FAILED! => {"changed": false, "msg": "Failed to import the >> required Python library (pexpect) on sejenk01's Python /usr/bin/python. >> Please read module documentation and install in the appropriate location. >> If the required library is installed, but Ansible is using the wrong Python >> interpreter, please consult the documentation on >> ansible_python_interpreter"} >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAL8fbwMUcDrmUQ1Nd_HnXRP%2B1Mw5R5U7ULDPteUmt02HCLmv3g%40mail.gmail.com >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CANCC9rJqxt%3DmwXD3Y_sbHy7m-LcJd3DhJORh7w0jyz3QB-g69g%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CANCC9rJqxt%3DmwXD3Y_sbHy7m-LcJd3DhJORh7w0jyz3QB-g69g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPJatauz%2B_9XB0SxTcYEnfWJcnT7gMu6_a7RPYb8ZUtvw%40mail.gmail.com.
