Merge pull request #2184 from ceph/fix_wildcard_remove

purge-docker: remove osd disk prepare logs
pull/2194/head
Guillaume Abrioux 2017-11-16 18:02:35 +01:00 committed by GitHub
commit 3d4d71ade0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -446,12 +446,18 @@
- "{{ playbook_dir }}/group_vars/osds.yml"
skip: true
- name: find all osd_disk_prepare logs
find:
paths: "{{ ceph_osd_docker_run_script_path | default('/usr/share') }}"
pattern: "ceph-osd-prepare-*.log"
register: osd_disk_prepare_logs
- name: ensure all osd_disk_prepare logs are removed
file:
path: "{{ item }}"
path: "{{ item.path }}"
state: absent
with_fileglob:
- "{{ ceph_osd_docker_run_script_path | default('/usr/share') }}/ceph-osd-prepare-*.log"
with_items:
- "{{ osd_disk_prepare_logs.files }}"
- name: purge ceph mon cluster