Merge "Add missing check.yml in redis role"
This commit is contained in:
commit
ab774b6608
6
ansible/roles/redis/tasks/check.yml
Normal file
6
ansible/roles/redis/tasks/check.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Redis ping pong check
|
||||
command: "docker exec redis redis-cli -h {{ api_interface_address }} -a {{ redis_master_password }} ping"
|
||||
register: redis_check
|
||||
changed_when: "redis_check.stdout != 'PONG'"
|
||||
failed_when: "redis_check.stdout != 'PONG'"
|
Loading…
x
Reference in New Issue
Block a user