redis_data_info
Read a Redis key and report whether it exists
Collection: community.general
Full Name: community.general.redis_data_info
Synopsis
Read a Redis key and report whether it exists
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| login_host | string | localhost | Redis server hostname | |
| login_port | int | 6379 | Redis server TCP port | |
| login_user | string | Redis ACL username | ||
| login_password | string | Redis authentication password; never included in errors | ||
| tls | bool | true | Connect using TLS | |
| validate_certs | bool | true | Validate the TLS server certificate | |
| ca_certs | string | PEM file containing trusted certificate authorities | ||
| client_cert_file | string | PEM client certificate file | ||
| client_key_file | string | PEM client private key file | ||
| key | string | yes | Database key |
Example
yaml
- name: Retrieve Redis information
community.general.redis_data_info:
login_host: localhost
tls: false
key: example