483b10e5e9
Change-Id: I5cf6353a30190aa0a2f0856530a65c48437ed5ea
22 lines
670 B
Django/Jinja
22 lines
670 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Auto mount for {{ systemd_mount_item }}
|
|
{% if not (item.what is search("^/.*")) or not (item.what is search("^//.*")) %}
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
{% endif %}
|
|
|
|
[{{ systemd_mount_suffix | capitalize }}]
|
|
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) }}{% if 'credentials' in item and item.type == 'fuse.s3fs' %},passwd_file=/etc/passwd-{{ mount_service_name.stdout }}{% endif %}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|