TASK [postgres : Install postgresql] -"No package matching 'postgresql96-server.x86_64' found available, installed or updated

you can refer this solution