Linting und Arbeit an Extraction nach Kommsafe

This commit is contained in:
Tim Schilling
2024-11-25 14:15:19 +01:00
parent b49509f4d8
commit bb0b2f607e
7 changed files with 80 additions and 38 deletions
+38
View File
@@ -0,0 +1,38 @@
---
- name: WebDAV Freigabe einbinden
hosts: webdav_testserver
become: true
tasks:
- name: DavFS2 installieren
apt:
name: davfs2
state: present
- name: Benutzerrechte für davfs2 einrichten
lineinfile:
path: /etc/fstab
line: "{{ webdav_url }} {{ mount_point }} davfs rw,user,noauto 0 0"
state: present
- name: WebDAV-Zugangsdaten hinzufügen
copy:
dest: /etc/davfs2/secrets
content: |
{{ webdav_url }} {{ webdav_user }} {{ webdav_password }}
owner: root
group: root
mode: "0600"
- name: Mount-Punkt erstellen
file:
path: "{{ mount_point }}"
state: directory
mode: "0755"
- name: WebDAV Freigabe einbinden
ansible.posix.mount:
path: "{{ mount_point }}"
src: "{{ webdav_url }}"
fstype: davfs
opts: rw,user,noauto
state: mounted