- name: create mount dir become: true file: path: "/mnt/nextcloud" state: directory - name: Backup der /etc/fstab anlegen become: true ansible.builtin.copy: src: /etc/fstab dest: /etc/fstab.backup.{{ ansible_date_time.iso8601 }} remote_src: yes mode: '0644' - name: Ensure /mnt/nextcloud is mounted and in fstab become: true ansible.posix.mount: path: /mnt/nextcloud src: "PARTUUID={{ partuuid }}" fstype: "ext4" opts: "defaults,noatime" state: mounted - name: Facts aktualisieren setup: filter: ansible_mounts