mirror of https://github.com/ceph/ceph-ansible.git
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 9999pull/1152/head
commit
80c018b575
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
- set_fact: ips="{{ ip_result.results | map(attribute='ansible_facts.ip_item') | list }}"
|
- 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
|
- name: check if ceph admin key exists on the osd nodes
|
||||||
stat:
|
stat:
|
||||||
|
|
Loading…
Reference in New Issue