Merge pull request #2185 from ceph/fix_purge-cluster

purge-cluster: remove usage of `with_fileglob`
pull/2207/head
Guillaume Abrioux 2017-11-21 13:30:15 +01:00 committed by GitHub
commit 3af03f0f3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -661,12 +661,18 @@
register: check_for_running_ceph register: check_for_running_ceph
failed_when: check_for_running_ceph.rc == 0 failed_when: check_for_running_ceph.rc == 0
- name: find ceph systemd unit files to remove
find:
paths: "/etc/systemd/system"
pattern: "ceph*"
register: systemd_files
- name: remove ceph systemd unit files - name: remove ceph systemd unit files
file: file:
path: "{{ item }}" path: "{{ item.path }}"
state: absent state: absent
with_fileglob: /etc/systemd/system/ceph* with_items:
changed_when: false - "{{ systemd_files.files }}"
when: ansible_service_mgr == 'systemd' when: ansible_service_mgr == 'systemd'