Can you please share `ansible --version` and influxdb installed location? There might be a difference between Python used interactively and used by Ansible.
On Wed, Nov 18, 2020 at 7:24 AM magae <[email protected]> wrote: > > Hi, everyone > I'm trying to execute Python Files on EC2 using ansible > > I got an error message like this > > *'import influxdb\nModuleNotFoundError: No module named 'influxdb'* > > I installed 'influxdb' module on EC2 > and it works well when I connected EC2 directly and execute Python > directly. > > But, it doesn't work when using ansible... > > Help ! Thanks > > -- > 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/5d34875a-e73b-438f-a13e-fff2552fec10n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/5d34875a-e73b-438f-a13e-fff2552fec10n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thanks, Abhijeet Kasurde -- 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/CAFwWkHoxCsLjWARGDtCDWezz17O0N0tgzqi5w-k0H1nv_dSv0A%40mail.gmail.com.
