Hi there,
via ansible calling the function cp_mgmt_access_rule_facts implicates that you can see all existing rules. That is not the case. You only see the first layer but when you use inline layer - multiple times - they are not visible. Instead you need to run a very complicated way to read all rules - parse for inline layer and for each inline layer you need to do the same.
Problem is: Ansible is not made for that! So please add this to your library. Otherwise this function is useless when you use inline layer.