galaxyproject / ansible-postgresql

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

Avoid triggering handlers on each run #13

Closed crabhi closed 5 years ago

crabhi commented 7 years ago

The order of dictionary is not defined, therefore the current code causes 25ansible_postgresql.conf be always re-generated and trigger the reload handler.

natefoo commented 5 years ago

@crabhi Thanks for the submission, I did this slightly different: I added the sort as you did but also added (preferred) support for a list of dicts in 0bb93c63c49feddb734615ef84d536ad7457804a.

crabhi commented 5 years ago

Thank you for resolving this.