Dynamic Host Collections

Problem:
Host collections are static.

Expected outcome:
Host collections populated by query (i.e.: “os = CentOS and os_major =8”)

Foreman and Proxy versions:
Foreman 2.1.4

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7

Other relevant data:

Is there a trick that anyone has successfully employed to make this happen? Maybe a hammer command running on cron?

Not sure about host collections, but depending on what you are trying to achieve with this you might want to look into using a bookmark for the query.

What I am trying to achieve is acquiring host collections from Foreman in AWX that are dynamically populated in Foreman. Bookmarks are irrelevant in this context.