mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
Redis: slave -> replica (#2867)
* Redis: slave -> replica * Fallback for old Redis versions in CI.
This commit is contained in:
parent
24c5d4320f
commit
2d1f5408d3
7 changed files with 70 additions and 55 deletions
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
redis_password: PASS
|
||||
master_port: 6379
|
||||
slave_port: 6380
|
||||
replica_port: 6380
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
- result.info.tcp_port == master_port
|
||||
- result.info.role == 'master'
|
||||
|
||||
- name: redis_info - connect to slave
|
||||
- name: redis_info - connect to replica
|
||||
community.general.redis_info:
|
||||
login_port: "{{ slave_port }}"
|
||||
login_port: "{{ replica_port }}"
|
||||
login_password: "{{ redis_password }}"
|
||||
register: result
|
||||
|
||||
|
@ -43,5 +43,5 @@
|
|||
that:
|
||||
- result is not changed
|
||||
- result.info is defined
|
||||
- result.info.tcp_port == slave_port
|
||||
- result.info.tcp_port == replica_port
|
||||
- result.info.role == 'slave'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue