Use short ansible_hostname in ipmi fragment
This commit is contained in:
parent
329bc9690e
commit
9dc9139c35
|
@ -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'][inventory_hostname]['address'] }}
|
pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][ansible_hostname]['address'] }}
|
||||||
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][inventory_hostname]['netmask'] }}
|
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][ansible_hostname]['netmask'] }}
|
||||||
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][inventory_hostname]['gateway'] }}
|
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][ansible_hostname]['gateway'] }}
|
||||||
|
|
Loading…
Reference in New Issue