TASK [database : Install Postgress 9.5 Version and its dependencies] ********************************************************************
Sunday 15 April 2018 15:46:32 +0530 (0:00:00.036) 0:00:00.036 **********
changed: [192.168.56.121] => (item=[u'postgresql', u'libpq-dev', u'python-psycopg2', u'postgresql-client-common', u'postgresql-contrib'])
TASK [database : Make change in postgresql.conf file] ***********************************************************************************
Sunday 15 April 2018 15:47:00 +0530 (0:00:27.474) 0:00:27.511 **********
ok: [192.168.56.121]
TASK [database : Daemon-Reload for Postgress] *******************************************************************************************
Sunday 15 April 2018 15:47:01 +0530 (0:00:01.188) 0:00:28.699 **********
changed: [192.168.56.121]
TASK [database : create a new postgresql Database] **************************************************************************************
Sunday 15 April 2018 15:47:05 +0530 (0:00:04.637) 0:00:33.337 **********
changed: [192.168.56.121]
TASK [database : Create Postgress User] *************************************************************************************************
Sunday 15 April 2018 15:47:07 +0530 (0:00:01.552) 0:00:34.890 **********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: psycopg2.ProgrammingError: relation "products" does not exist
fatal: [192.168.56.121]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_9cE3qn/ansible_module_postgresql_user.py\", line 846, in <module>\n main()\n File \"/tmp/ansible_9cE3qn/ansible_module_postgresql_user.py\", line 815, in main\n changed = grant_privileges(cursor, user, privs) or changed\n File \"/tmp/ansible_9cE3qn/ansible_module_postgresql_user.py\", line 602, in grant_privileges\n grant_funcs[type_](cursor, user, name, privileges)\n File \"/tmp/ansible_9cE3qn/ansible_module_postgresql_user.py\", line 491, in grant_table_privileges\n cursor.execute(query)\n File \"/usr/lib/python2.7/dist-packages/psycopg2/extras.py\", line 120, in execute\n return super(DictCursor, self).execute(query, vars)\npsycopg2.ProgrammingError: relation \"products\" does not exist\n\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}