Awesome work on the role dependencies stuff! I'll be using that a
lot. It occurs that it might also be good if we could specify that
two roles conflict with each other.
A concrete example: I have a 'shorewall' role that I use for setting
up and configuring shorewall on all my servers. This has become too
complex because of one special case with complex requirements: the
gateway routers. So I factor that case out into a separate
'shorewall-gateway' role. Because these have been spilt up, I can
greatly simplify the organisation and conditional logic in both roles.
However, I now have to be very careful that I do not apply both roles
to the same server. I would be great if I could put, say:
conflicts:
- { role: shorewall }
in the meta/main.yml for shorewall-gateway so that a fatal error is
generated if I ever try to combine the two roles.
Thoughts?
K
Kahlil (Kal) Hodgson GPG: C9A02289
Head of Technology (m) +61 (0) 4 2573 0382
DealMax Pty Ltd (w) +61 (0) 3 9008 5281
Suite 1415
401 Docklands Drive
Docklands VIC 3008 Australia
"All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore,
if you can't get them together again, there must be a reason. By all
means, do not use a hammer." -- IBM maintenance manual, 1925