PARALLAX

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

NameTypeRequiredDefaultDescription
login_hoststringlocalhostRedis server hostname
login_portint6379Redis server TCP port
login_userstringRedis ACL username
login_passwordstringRedis authentication password; never included in errors
tlsbooltrueConnect using TLS
validate_certsbooltrueValidate the TLS server certificate
ca_certsstringPEM file containing trusted certificate authorities
client_cert_filestringPEM client certificate file
client_key_filestringPEM client private key file
keystringyesDatabase key
increment_intintInteger increment; mutually exclusive with increment_float
increment_floatfloatFloating point increment

Example

yaml
- name: Retrieve Redis information
  community.general.redis_data_incr:
    login_host: localhost
    tls: false
    key: example
Search
    ↑ ↓ move↵ openesc close