ansible/ansible — pull request #5202 by jinnko (2013-12-06 16:32:25+00:00)
Title: Gracefully handle ALTER ROLE on read-only postgres servers.

Standby servers are in a read-only state, therefore they will return an error when trying to ALTER ROLE. We catch the exception and report the error, allowing the ansible run to continue if ignore_errors=True in the task.

This commit also fixes a bug that would have triggered an exception when user = PUBLIC and password is not None.