ansible-role-systemd_mount/templates/systemd-mount.j2
Kevin Carter 031ba51726
Add basic tests
This change adds basic tests when creating a mount unit file.
This test will ensure system-mount is functional with a local mounts,
NFS mounts, and swap mounts.

Change-Id: I00dbf7f6ff3b687e622b29808197dbd7427d24fe
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-23 18:12:18 -05:00

18 lines
420 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=Auto mount for {{ item.where | default(item.what) }}
[{{ (item.type == 'swap') | ternary('Swap', 'Mount') }}]
What={{ item.what }}
{% if item.type == 'swap' %}
Priority={{ item.priority | default(0) }}
{% else %}
Where={{ item.where }}
Type={{ item.type }}
{% endif %}
Options={{ item.options | default(systemd_default_mount_options) }}
[Install]
WantedBy=multi-user.target