Setting IPMI IP addresses

Hi,
We have servers with on one subnet and IPMI on another.

So we might have a server with an IP of

10.10.10.50

and an IPMI address of:

10.10.20.57

What we would like to do is use Ansible to set an IPMI address to match the last numbers of the host address

IP: 10.10.10.50
IPMI: 10.10.20.50

Has anyone already done something like this?

Thanks,
James

You'll want to use the bmc-config command and template out your bmc-config.conf.