Refactor postgres playbook to use service module.