galaxyproject / ansible-postgresql

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

Make it work with check_mode #39

Open diraol opened 2 years ago

diraol commented 2 years ago

Ok, even with the small fix I proposed in #38, it was still not working in check_mode (because a bunch of reasons).

So this PR aims to make it work also with in --check (check mode). I had to set a small "hack" to make it work because neither command not shell effectively run in check_mode, so we couldn't get the current version result from them (using dpkg shell command).