tests/setup: update mount options on EL 8

The nobarrier mount flag doesn't exist anymoer on XFS in the EL 8
kernel. That's why the task wasn't working on those systems.
We can still use the other options instead of skipping the task.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4924/head
Dimitri Savineau 2020-01-10 15:30:58 -05:00 committed by Guillaume Abrioux
parent e4ddcb812b
commit 3900527e16
1 changed files with 1 additions and 3 deletions

View File

@ -22,11 +22,9 @@
mount:
path: '{{ rootmount.mount }}'
src: '{{ rootmount.device }}'
opts: noatime,nodiratime,nobarrier
opts: 'noatime,nodiratime{% if ansible_os_family == "RedHat" and ansible_distribution_major_version | int < 8 %},nobarrier{% endif %}'
fstype: '{{ rootmount.fstype }}'
state: mounted
when: not (ansible_os_family == 'RedHat' and
ansible_distribution_major_version == '8')
# we need to install this so the Socket testinfra module
# can use netcat for testing