aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/systemd_requires_mount_for
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-07 11:06:33 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-07 19:38:45 +0200
commit7ccc51aad5ea52b26b27faf6d00413c94bf02f46 (patch)
tree4dd0bb7670b4c90e5c97350312dede37357a19cd /roles/systemd_requires_mount_for
parentlinux_status: factor out PPA set up to a separate role (diff)
downloadinfra-ansible-7ccc51aad5ea52b26b27faf6d00413c94bf02f46.tar.gz
infra-ansible-7ccc51aad5ea52b26b27faf6d00413c94bf02f46.zip
factor out systemd service editing
Diffstat (limited to 'roles/systemd_requires_mount_for')
-rw-r--r--roles/systemd_requires_mount_for/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/systemd_requires_mount_for/tasks/main.yml b/roles/systemd_requires_mount_for/tasks/main.yml
new file mode 100644
index 0000000..71db6e4
--- /dev/null
+++ b/roles/systemd_requires_mount_for/tasks/main.yml
@@ -0,0 +1,6 @@
+- ansible.builtin.include_role:
+ name: systemd_edit
+ vars:
+ service_section: Unit
+ service_option: RequiresMountFor
+ service_values: ['{{ mount_dir }}']