[ansible-project] Re: psycog2 is installed but postgresql_user gives error that psycog2 is required

2018-03-07 Thread gearoidibm
solved by setting ansible_python_interpreter: /usr/local/bin/python On Wednesday, 7 March 2018 22:00:17 UTC, gearo...@gmail.com wrote: > > psycog2 has beeen installed using ansible pip module. > > The postgresql_user module fails with a message saying psycog2 is required. > > pip list shows that

[ansible-project] Re: psycog2 is installed but postgresql_user gives error that psycog2 is required

2018-03-07 Thread gearoidibm
I found that with /usr/bin/python I cannot import psycopg2, but with /usr/local/bin/python I can. Guess there's two python envs on my managed host. On Wednesday, 7 March 2018 22:00:17 UTC, gearo...@gmail.com wrote: > > psycog2 has beeen installed using ansible pip module. > > The postgresql_use