mirror of
https://gitea.0xace.cc/ansible-galaxy/redis.git
synced 2024-11-24 23:36:40 +00:00
17 lines
355 B
YAML
17 lines
355 B
YAML
|
---
|
||
|
- name: Restart redis
|
||
|
throttle: 1
|
||
|
ansible.builtin.systemd:
|
||
|
state: restarted
|
||
|
daemon_reload: yes
|
||
|
name: redis-server
|
||
|
when: start_redis is not changed
|
||
|
|
||
|
- name: Restart redis-sentinel
|
||
|
throttle: 1
|
||
|
ansible.builtin.systemd:
|
||
|
state: restarted
|
||
|
daemon_reload: yes
|
||
|
name: redis-sentinel
|
||
|
when: start_redis_sentinel is not changed
|