ansible-lockdown / RHEL9-CIS

Ansible role for Red Hat 9 CIS Baseline
https://ansible-lockdown.readthedocs.io
MIT License
123 stars 93 forks source link

How to avoid handler name clashes across roles in the same play. #223

Open NeilDavisNPS opened 3 months ago

NeilDavisNPS commented 3 months ago

Question This is a question about usage, and possibly style in respect of plays within a playbook. One of the tasks in the post section of the role, is the following:

Is it "good form" to run the rhel9cis role in it's own play? Is there a clean way to namespace the tasks so that they do not clash?

Environment (please complete the following information):

uk-bolly commented 1 month ago

hi @NeilDavisNPS

Great question, As you have mentioned i would suggest the same, to run it as its own play or the order in which you run your roles. Due to the number of changes/tasks in these roles and the way the vendors give updates, i would run these individually unless you are able to keep on top of the changes as part of your solution.

Kindest regards

uk-bolly