Use inventory_hostname instead of ansible_nodename
The ips.txt.j2
uses ansible_nodename
as a variable (e.g. paravance-5-kavlan-4
- see [1]), while the roles
variable contains the node name plus the domain name (e.g. paravance-5-kavlan-4.rennes.grid5000.fr
). This leads to a mismatch during the emulation of the network (s.alias
doesn't exists - see [2]).
A fix consists in using inventory_hostname
instead of ansible_nodename
.
[2] https://gitlab.inria.fr/discovery/enoslib/blob/master/enoslib/api.py#L1006-1010