3d194c6de3
This test was changed to 'version' in ansible 2.5 [1]. [1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-compariso Change-Id: I04b8e4641f07c69f015fef01555f4b40f1817a32
20 lines
655 B
SYSTEMD
20 lines
655 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Virtual Machine and Container Storage
|
|
ConditionPathExists=/var/lib/machines.raw
|
|
|
|
[Mount]
|
|
What=/var/lib/machines.raw
|
|
Where=/var/lib/machines
|
|
Type=btrfs
|
|
Options=loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|