Hi,
In the hostname module http://docs.ansible.com/ansible/hostname_module.html
I'd like to detect whether the init system is systemd or not in a module.
https://github.com/ansible/ansible-modules-core/issues/573#issuecomment-235756879
How can I do that?
I found the method get_service_mgr_facts method in Facts class.
https://github.com/ansible/ansible/blob/123d54e736520c59d8c7afdcb1c6526df501b174/lib/ansible/module_utils/facts.py#L351-L400
Is this usable from a module?
Thanks!
Hiroaki