feat: integrate Redis service for JuiceFS with Docker Compose and update configuration

This commit is contained in:
2025-03-14 16:55:57 +01:00
parent 9009954996
commit e1c5113f87
4 changed files with 68 additions and 2 deletions

View File

@@ -42,6 +42,9 @@
hetzner_access_key: "{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_ACCESS_KEY_ID') }}"
hetzner_secret_key: "{{ lookup('community.general.onepassword', 'mfk2qgnaplgtk6xmfc3r6w6neq', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='AWS_SECRET_ACCESS_KEY') }}"
- name: Include JuiceFS Redis tasks
ansible.builtin.include_tasks: services/redis/redis.yml
- name: Format JuiceFS volume
ansible.builtin.command: >
juicefs format
@@ -53,7 +56,7 @@
--trash-days=7
--dir-stats
--hash-prefix
sqlite3:///mnt/juicefs-metadata.sqlite myjfs
redis://127.0.0.1:6379/0 myjfs
become: true
when: not metadata_file.stat.exists