Amending content view for hosts in a hostgroup


I need to update hosts in a host group with a content view using Ansible ap.

Expected outcome:

Content view updated for host group hosts

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

Ok so I figured that out, but

I realized that the hostgroups are different between satellite and Ansible AP with dynamic Inventory. Is there a way of getting the original hostgroup name from ansible ap some how. As I need to script something with playbook to update satellite hostgroup with different content view and if I can get this value I’m going to struggle.