From 737131e6b27d6e6802633a8d979156e0106b93d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Wed, 25 Aug 2021 11:23:39 +0200
Subject: [PATCH] fix: create fstab in roledir to make sure there are no
 permission issues, and ignore it in git

---
 .gitignore     | 1 +
 tasks/main.yml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 0602192..5cf66a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -86,3 +86,4 @@ iso/
 # time new systems should be installed. Hence, it's not suitable for version
 # control.
 vars/network.yml
+fstab
diff --git a/tasks/main.yml b/tasks/main.yml
index e17df81..859cf81 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -19,7 +19,7 @@
     opts: "loop"
     path: "{{ playbook_dir }}/iso/"
     src: "{{ playbook_dir }}/rhel-server-{{ rhel_version_long }}-x86_64-dvd.iso"
-    fstab: "/tmp/fstab"
+    fstab: "{{ playbook_dir }}/fstab"
     state: mounted
 # Copy contents of ISO image to the build directory, because they will need to
 # be included in the new image.
-- 
GitLab