diff options
Diffstat (limited to 'resources/ansible_roles/ceph-disk-info/tasks/main.yml')
-rw-r--r-- | resources/ansible_roles/ceph-disk-info/tasks/main.yml | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/resources/ansible_roles/ceph-disk-info/tasks/main.yml b/resources/ansible_roles/ceph-disk-info/tasks/main.yml deleted file mode 100644 index 6bb88e69..00000000 --- a/resources/ansible_roles/ceph-disk-info/tasks/main.yml +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################## -# Copyright (c) 2017 ZTE Corporation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - - -- name: get ceph disk information - become: true - command: ceph-disk list - register: ceph_disk_out - -- name: saving output to log - copy: - content: "{{ ceph_disk_out.stdout }}" - dest: "{{ logfile }}" - delegate_to: localhost - -- name: get ceph journal information - become: true - shell: lsblk -d -o name,rota |awk '{if ($2 == 0) printf "%s SSD \n",$1 }' - register: ceph_journal_out - -- name: append - lineinfile: - dest: "{{ logfile }}" - line: "{{ ceph_journal_out.stdout }}" - insertafter: EOF - delegate_to: localhost - -- name: get ceph report - become: true - command: ceph report - register: ceph_report_out - -- name: saving ceph report to log - copy: - content: "{{ ceph_report_out.stdout }}" - dest: "{{ output }}/ceph_report.json" - delegate_to: localhost |