Skip to content

Commit

Permalink
Revert "ceph-validate: use root device from ansible_mounts"
Browse files Browse the repository at this point in the history
This reverts commit b1542fd.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
  • Loading branch information
dsavineau authored and guits committed Jul 7, 2021
1 parent e9123dd commit bc57061
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion roles/ceph-validate/tasks/check_devices.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
- name: find device used for operating system
command: findmnt -v -n -T / -o SOURCE
changed_when: false
register: root_device

- name: resolve root_device
command: "readlink -f {{ root_device.stdout }}"
changed_when: false
register: _root_device

- name: set_fact root_device
set_fact:
root_device: "{{ ansible_facts['mounts'] | selectattr('mount', 'match', '^/$') | map(attribute='device') | first }}"
root_device: "{{ _root_device.stdout }}"

- name: lvm_volumes variable's tasks related
when:
Expand Down

0 comments on commit bc57061

Please sign in to comment.