community / community.general / 3.8.10 / module / redis_data_info Get value of key in Redis database | "added in version" 3.7.0 of community.general" Authors: Andreas Botzner (@paginabianca)community.general.redis_data_info (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Get value of keys in Redis database.
- name: Get key foo=bar from loalhost with no username community.general.redis_data_info: login_host: localhost login_password: supersecret key: foo
- name: Get key foo=bar on redishost with custom ca-cert file community.general.redis_data_info: login_host: redishost login_password: supersecret login_user: somuser validate_certs: true ssl_ca_certs: /path/to/ca/certs key: foo
key: description: - Database key. required: true type: str tls: default: true description: - Specify whether or not to use TLS for the connection. type: bool ca_certs: description: - Path to root certificates file. If not set and I(tls) is set to C(true), certifi ca-certificates will be used. type: str login_host: default: localhost description: - Specify the target host running the database. type: str login_port: default: 6379 description: - Specify the port to connect to. type: int login_user: description: - Specify the user to authenticate with. - Requires L(redis,https://pypi.org/project/redis) >= 3.4.0. type: str login_password: description: - Specify the password to authenticate with. - Usually not used when target is localhost. type: str validate_certs: default: true description: - Specify whether or not to validate TLS certificates. - This should only be turned off for personally controlled sites or with C(localhost) as target. type: bool
exists: description: If they key exists in the database. returned: on success type: bool msg: description: A short message. returned: always sample: 'Got key: foo with value: bar' type: str value: description: Value key was set to. returned: if existing sample: value_of_some_key type: str