diff --git a/inventory/group_vars/all/infra.yml b/inventory/group_vars/all/infra.yml index eb5ddb9963..02d72f550e 100644 --- a/inventory/group_vars/all/infra.yml +++ b/inventory/group_vars/all/infra.yml @@ -34,7 +34,7 @@ galera_root_user: "root" memcached_port: 11211 memcached_servers: >- {{ - (groups['memcached_all'] | map('extract', hostvars, 'ansible_host') | list) + (groups['memcached'] | map('extract', hostvars, 'ansible_host') | list) | map('regex_replace', '(.*)' ,'\\1:' ~ memcached_port) | list | join(',') diff --git a/scripts/upgrade-utilities/playbooks/memcached-flush.yml b/scripts/upgrade-utilities/playbooks/memcached-flush.yml index 4c56047fef..791fc2bb90 100644 --- a/scripts/upgrade-utilities/playbooks/memcached-flush.yml +++ b/scripts/upgrade-utilities/playbooks/memcached-flush.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Memcached cache flush - hosts: memcached_all + hosts: memcached gather_facts: true user: root vars: