Use inventory_hostname in IPMI fragment

This commit is contained in:
Joshua Boniface 2021-10-10 02:57:54 -04:00
parent 5ab40fa15f
commit f0f3960250
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
iface ipmi inet manual iface ipmi inet manual
pre-up ipmitool lan set 1 ipsrc static pre-up ipmitool lan set 1 ipsrc static
pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][ansible_hostname]['address'] }} pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][inventory_hostname]['address'] }}
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][ansible_hostname]['netmask'] }} pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][inventory_hostname]['netmask'] }}
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][ansible_hostname]['gateway'] }} pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][inventory_hostname]['gateway'] }}