ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
787 stars 1.45k forks source link

[PR #8464/800bc011 backport][stable-9] feat(redis_info): add option to fetch cluster info #8493

Closed patchback[bot] closed 3 weeks ago

patchback[bot] commented 3 weeks ago

This is a backport of PR #8464 as merged into main (800bc0111277770bff3b26ff527431d57dadb8ff).

SUMMARY

Adds support for getting cluster information. It does not use, redis-py's cluster_info() because I couldn't get it to work when the cluster is yet to be configured. Hence the execute_command which works in that case.

It's optional and can be invoked with adding cluster: true to the task:

- name: Get server cluster information
  community.general.redis_info:
    cluster: true
  register: result

And returns the additionnal data in the cluster_info variable alongside info.

ISSUE TYPE
COMPONENT NAME
ansibullbot commented 3 weeks ago

cc @levonet click here for bot help