galaxyproject / ansible-postgresql

An Ansible role for managing a PostgreSQL server
https://galaxy.ansible.com/galaxyproject/postgresql
122 stars 58 forks source link

added privilege escalation #15

Closed eslerm closed 5 years ago

eslerm commented 6 years ago

Allows a non-root user to run this RedHat task.

This commit is slightly opinionated, but the practice appears to be well accepted.

Adding become to the Check for pgdata directory stanza is especially useful as it fails silently otherwise.

bgruening commented 6 years ago

Welcome @eslerm! :)

eslerm commented 5 years ago

Closing as the galaxyproject sets become on the playbook level.