refactor: streamline JuiceFS installation and Redis task inclusion in Ansible playbooks
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 36s
Nix Format Check / check-format (push) Successful in 52s
Python Lint Check / check-python (push) Failing after 10s

This commit is contained in:
2025-03-24 19:53:48 +01:00
parent b6f05876a5
commit 85c784e825
2 changed files with 10 additions and 13 deletions

View File

@@ -7,8 +7,6 @@
- name: Install JuiceFS using the automatic installer
ansible.builtin.shell: curl -sSL https://d.juicefs.com/install | sh -
args:
warn: false # Suppress warnings about using shell/curl
register: juicefs_installation
when: juicefs_check.rc != 0
become: true
@@ -40,9 +38,6 @@
}}"
redis_password: "{{ lookup('community.general.onepassword', '4cioblm633bdkl6put35lk6ql4', vault='j7nmhqlsjmp2r6umly5t75hzb4', field='password') }}"
- name: Include JuiceFS Redis tasks
ansible.builtin.include_tasks: services/redis/redis.yml
- name: Create JuiceFS systemd service file
ansible.builtin.template:
src: templates/juicefs.service.j2
@@ -57,6 +52,9 @@
daemon_reload: true
become: true
- name: Include JuiceFS Redis tasks
ansible.builtin.include_tasks: services/redis/redis.yml
- name: Enable and start JuiceFS service
ansible.builtin.systemd:
name: juicefs.service