On Thu, 24 Aug 2023 17:46:58 +0200
Dick Visser <dnmvis...@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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20230825001028.66b4cefc%40gmail.com.

Attachment: pgpqGc32vuRsb.pgp
Description: OpenPGP digital signature

Reply via email to