kolla-ansible/ansible/roles/redis/tasks/check.yml
Florian Engelmann 24e15d6052 Add missing check.yml in redis role
Closes-Bug: #1738801

Change-Id: I345be79b9aa4d106e7721f44ccdb7f8342c94d3a
2017-12-19 06:45:32 +01:00

7 lines
259 B
YAML

---
- 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'"