We use Ansible to deploy and configure some machines and we have now an interesting problem to solve, which is: NethServer and CentOS are completely indistinguishable between themselves, based on native Ansible facts collected at setup phase.
We could guess indirectly it is a NethServer since
facter_rpms.nethserver-release exists and we are already thinking on installing a custom fact script to publish to Ansible the contents of
db configuration show sysconfig, but I would like to discuss it also with developers and other advanced users.
How do you distinguish in Ansible between NethServer and CentOS, if you ever need it? What are your best educated guess on doing that?
I am also thinking, since some years already, to support event much better Ansible writing an e-smith plugin (to do
db commands and signalling events the Ansible way); we just have flawed trials and we didn’t even put the right efforts on it, TBH.
Thanks for your attention.