From: chenyanshan Date: Mon, 5 Dec 2016 05:40:38 +0000 (+0800) Subject: this patch fix the regex pattern in infrastructure-playbooks/shrink-osd.yml when... X-Git-Tag: v2.1.0~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1144%2Fhead;p=ceph-ansible.git this patch fix the regex pattern in infrastructure-playbooks/shrink-osd.yml when the osd's pid num is bigger than 9999 Signed-off-by: chenyanshan --- diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index 59842e7b4..e71e53178 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -100,7 +100,7 @@ - set_fact: ips="{{ ip_result.results | map(attribute='ansible_facts.ip_item') | list }}" - - set_fact: real_ips="{{ ips | regex_replace(':[0-9][0-9][0-9][0-9]\/[0-9][0-9][0-9][0-9]', '') }}" + - set_fact: real_ips="{{ ips | regex_replace(':[0-9][0-9][0-9][0-9]\/[0-9]+', '') }}" - name: check if ceph admin key exists on the osd nodes stat: