redis_data_incr
Increment a Redis numeric key
Collection: community.general
Full Name: community.general.redis_data_incr
Synopsis
Increment a Redis numeric key
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 | |
| increment_int | int | Integer increment; mutually exclusive with increment_float | ||
| increment_float | float | Floating point increment |
Example
yaml
- name: Retrieve Redis information
community.general.redis_data_incr:
login_host: localhost
tls: false
key: example