Configure more than one interface per host via ansible


We manage (create/delete/configure) hosts via ansible module what works fine for us. But now we need a host which provides two nics with two different subnets aligned to.
As we see in the documentation of the ansible host module (link) there are only single parameter subnet, subnet6 and domain which we assume that these configure the nic.

Expected outcome:

We had expected that we can manage more than one nic via ansible.

Maybe this is a general problem, because we can define a second nic for example in a compute profile but not in host groups.

Is there a way to get rid with is?

Foreman and Proxy versions:

Foreman 2.1.0

Foreman and Proxy plugin versions:

Foreman Ansible Modules 1.0.0

I would have thought, when you use that compute profile in the host / hostgroup, it should give you the corresponding configuration.

But would you mind filing a wishlist item at:

If we use the compute profile in the host ui we get a second nic but if we use it in host groups we don’t do. So we can’t preconfigure the second nic via host group.