On Thu, 24 Aug 2023 17:46:58 +0200
Dick Visser <
dnmv...@gmail.com> wrote:
> Is there perhaps another way to avoid having a ton of very similar)
> handlers?
It is not, IMHO, if you want to do it in a single run of a playbook.
It is possible to create handlers from meta-data and template(s) and
then import them. Similar to the concept of the *configure* script
https://en.wikipedia.org/wiki/Configure_script
I'm not saying Ansible should generally adopt this concept. I think,
in some cases such configuration might make the project robuster,
simpler, and easily extendable. FWIW, it's feasible to control some
projects by structured meta-data only
https://ansible-config-light.readthedocs.io/en/latest/qsg.html
--
Vladimir Botka