So just for clarity,@Vladimir, it looks like your role is dynamically 
generating handlers based on what the configuration is set?

Get Outlook for iOS<https://aka.ms/o0ukef>

________________________________
From: [email protected] <[email protected]> on 
behalf of Vladimir Botka <[email protected]>
Sent: Saturday, June 19, 2021 3:39 PM
To: jane p
Cc: [email protected]
Subject: Re: [ansible-project] Ansible best practices: idempotance

On Fri, 18 Jun 2021 17:35:28 -0500
jane p <[email protected]> wrote:

> Application should be able to change its dependency structure, for
> example, so that
> service C now depends on artifacts1, 2 and 3, and ansible playbook
> should not have to change.

You can create data-driven control flow. As a hint, see the role
https://github.com/vbotka/ansible-config-light

You can dynamically create handlers, e.g.
https://ansible-config-light.readthedocs.io/en/latest/guide-variables-handlers.html#handlers

and configure what handlers shall be notified, e.g.
https://ansible-config-light.readthedocs.io/en/latest/guide-variables-files-lineinfile.html#lineinfile

The role will collect the data and create the handlers. See
https://ansible-config-light.readthedocs.io/en/latest/guide.html#setup

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20210619053925.1c2fd339%40gmail.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616F38A9589A113B98B79D3AD0C9%40SYBPR01MB5616.ausprd01.prod.outlook.com.

Reply via email to