Merge pull request #1144 from yanshanchen/fix-shrink-osd-regex

the pattern in regex_replace is not right when the pid of osd is bigger  than 9999
pull/1152/head
Sébastien Han 2016-12-05 10:14:58 +01:00 committed by GitHub
commit 80c018b575
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: