mirror of https://github.com/ceph/ceph-ansible.git
Revert "ceph-validate: use root device from ansible_mounts"
This reverts commit b1542fd340
.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/6690/head
parent
e9123dda35
commit
bc570619b6
|
@ -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
|
- name: set_fact root_device
|
||||||
set_fact:
|
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
|
- name: lvm_volumes variable's tasks related
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue