From 190f0d8d9faa1fd019e0373d94c0e27e6f78138f Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 9 Oct 2019 17:43:41 +0100 Subject: [PATCH] Update memcached_servers regex to match one or more chars Previously this matched zero or more, and on debian buster systems this generates the following, which breaks keystone. memcached_servers: "172.29.237.133:11211:11211" Change-Id: Ic4bfb03c11ea79c0e0c9adf3e3d2443c3f5c0154 --- inventory/group_vars/all/infra.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/group_vars/all/infra.yml b/inventory/group_vars/all/infra.yml index 51f518c956..7f3419628b 100644 --- a/inventory/group_vars/all/infra.yml +++ b/inventory/group_vars/all/infra.yml @@ -40,7 +40,7 @@ memcached_port: 11211 memcached_servers: >- {{ (groups['memcached'] | map('extract', hostvars, 'ansible_host') | list) - | map('regex_replace', '(.*)' ,'\1:' ~ memcached_port) + | map('regex_replace', '(.+)' ,'\1:' ~ memcached_port) | list | join(',') }}