Associate template to hostgroup w/ Ansible?

Problem:

I’m managing my Satellite/Foreman instances with Ansible (Red Hat Satellite Ansible Collection or Foreman Ansible Modules at Ansible Galaxy) and I’ve found solutions to just about every configuration that I used to setup with hammer EXCEPT for the equivalent of:

hammer template combination create --hostgroup centos-7-serv-x86_64 --provisioning-template-id centos7-server

I suspect there’s an ansible module to do this and I’m just overlooking it.

Thanks for any suggestions you have!

Expected outcome:

Use ansible instead of hammer to associate a provisioning template to a host group

Foreman and Proxy versions:

Satellite 6.11 / Foreman 3.1

Foreman and Proxy plugin versions:

Distribution and version:

RHEL 8 or AlmaLinux 8

Other relevant data:

Hi, I checked FAM and it seems this one has not been implemented yet. There’s an open Issue for that:
https://github.com/theforeman/foreman-ansible-modules/issues/974

1 Like

Thanks Roman - I’m glad to know I’m not just overlooking it. We’ll continue to work around it with hammer for now. Cheers!

1 Like