Container management in foreman through ansible

Problem:
I am trying to find out sample ansible codes for container management in foreman through ansible. The requirement is to pull the image from Dockerhub/Redhat repositories and manage it through ansible in foreman
Expected outcome:
The requirement is to pull the image from Dockerhub/Redhat repositories and manage it through ansible
Foreman and Proxy versions:

Foreman and Proxy plugin versions:
3.1.0
Distribution and version:
RHEL 8