Fix missing logstash device error

The findmnt command is printing the fsroot as [/dir] at the end
of the source device and that is causing as a parsing error to
occur when it is assumed that only the device string is returned leading
to an error looking up an invalid device.

Change-Id: If95f8e0ed8154ad0277972159afac9f967b79c8f
This commit is contained in:
Michael Vollman 2018-10-15 14:28:31 -04:00
parent 2004e601c2
commit b56dbc6b4f

View File

@ -84,7 +84,7 @@
- name: Check queue type
block:
- name: Get block device for logstash
command: findmnt -no SOURCE --target=/var/lib/logstash
command: findmnt -vno SOURCE --target=/var/lib/logstash
changed_when: false
register: _logstash_block_device