Mount pCloud with turnstile rclone service

This commit is contained in:
Fabio Scotto di Santolo
2026-04-19 09:06:57 +02:00
parent c4397c9217
commit 74c95be7f7
5 changed files with 69 additions and 2 deletions

View File

@@ -380,15 +380,44 @@
mode: "0755"
- path: "{{ user_home }}/.local/state"
mode: "0755"
- path: "{{ user_home }}/.cache"
mode: "0755"
- path: "{{ user_home }}/.cache/rclone"
mode: "0755"
- path: "{{ user_home }}/.local/state/ssh-agent"
mode: "0700"
- path: "{{ user_home }}/.local/share"
mode: "0755"
- path: "{{ user_home }}/.local/share/keyrings"
mode: "0700"
- path: "{{ user_home }}/Remotes"
mode: "0755"
- path: /usr/src
mode: "0755"
- name: Check whether Org home path already exists
tags: [dotfiles, dotfiles:desktop]
ansible.builtin.stat:
path: "{{ user_home }}/Org"
follow: false
register: org_home_path
- name: Fail when Org home path conflicts with managed symlink
tags: [dotfiles, dotfiles:desktop]
ansible.builtin.fail:
msg: "{{ user_home }}/Org already exists and is not the managed symlink to {{ user_home }}/Remotes/pCloud/Org"
when:
- org_home_path.stat.exists | default(false)
- not (org_home_path.stat.islnk | default(false) and org_home_path.stat.lnk_source | default('') == user_home + '/Remotes/pCloud/Org')
- name: Ensure Org home path points to pCloud Org directory
tags: [dotfiles, dotfiles:desktop]
ansible.builtin.file:
src: "{{ user_home }}/Remotes/pCloud/Org"
dest: "{{ user_home }}/Org"
state: link
force: true
- name: Ensure maildir directories exist
tags: [dotfiles, dotfiles:desktop]
ansible.builtin.file: