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 <yanshanchen@139.com>
pull/1144/head
chenyanshan 2016-12-05 13:40:38 +08:00
parent 0f3ae4c0b1
commit 7eab2529ed
1 changed files with 1 additions and 1 deletions

View File

@ -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: