Ansible module for adding an SELinux context equivalence

Solution 1:

Closest Ansible module to semanage fcontext is community.general.sefcontext. Looks like it is idempotent and supports diff mode.

However, no equilviant to --equal that I can find. Write the context you want as the setype parameter. For example, user_home_t. I would prefer the source of truth be the playbook in this case, not some other file on the host.

Should you want --equal, consider writing it yourself and submitting an enhancement pull request for the module.