feat: integrate Redis service for JuiceFS with Docker Compose and update configuration
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user