From a42b0b5ed1c428ba1795eedac40239e56008b258 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 3 Jun 2021 10:34:57 +0100 Subject: CI: test interface names with dashes Interface names with dashes can cause problems in Ansible since dashes are replaced with underscores when referencing facts. Change-Id: Ib15f81120d353ebcf8965dc0aaba90f3a9b0ec44 Related-Bug: #1927357 --- roles/cephadm/templates/cephadm.yml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/cephadm/templates/cephadm.yml.j2 b/roles/cephadm/templates/cephadm.yml.j2 index 2aee3f819..b56466c4f 100644 --- a/roles/cephadm/templates/cephadm.yml.j2 +++ b/roles/cephadm/templates/cephadm.yml.j2 @@ -2,8 +2,8 @@ --- service_type: host hostname: {{ hostvars[host]['ansible_hostname'] }} -addr: {{ hostvars[host]['ansible_vxlan0']['ipv4']['address'] }} -labels: +addr: {{ hostvars[host]['ansible_vxlan_0']['ipv4']['address'] }} +labels: - _admin - mon - mgr -- cgit v1.2.3