Fix indentation in server.yml and add necesse service

Add become: true to JuiceFS stop/start tasks in redis.yml
This commit is contained in:
2025-10-26 00:04:51 +00:00
parent 8bfd8395f5
commit 8ba47c2ebf
2 changed files with 153 additions and 147 deletions

View File

@@ -159,3 +159,7 @@
enabled: true
hosts:
- mennos-server
- name: necesse
enabled: true
hosts:
- mennos-server

View File

@@ -34,6 +34,7 @@
register: juicefs_stop
changed_when: juicefs_stop.changed
when: redis_compose.changed and juicefs_service_stat.stat.exists
become: true
- name: List containers that are running
ansible.builtin.command: docker ps -q
@@ -68,6 +69,7 @@
register: juicefs_start
changed_when: juicefs_start.changed
when: juicefs_service_stat.stat.exists
become: true
- name: Restart containers that were stopped
ansible.builtin.command: docker start {{ item }}