Ansible how to notify postgresql changes

After a modification of gitlab.rb config file I notify the “gitlab-ctl reconfigure” command.
If I’ve modified a postgresql instruction, “gitlab-ctl restart postgresql” should be launched also, but I don’t understand which has to be launched first and how to notify 2 actions.

Thanks for any suggestion.