fix: first jinja templates
This commit is contained in:
parent
ffcc9201ac
commit
153732e83b
@ -1,2 +1,33 @@
|
|||||||
---
|
---
|
||||||
# defaults file for redis
|
# defaults file for redis
|
||||||
|
|
||||||
|
redis_databases: 16
|
||||||
|
redis_dbfilename: "dump.rdb"
|
||||||
|
redis_dir: "/var/lib/redis/"
|
||||||
|
|
||||||
|
redis_interfaces:
|
||||||
|
- "127.0.0.1"
|
||||||
|
- "-::1"
|
||||||
|
|
||||||
|
redis_loglevel: "notice"
|
||||||
|
|
||||||
|
redis_maxclients: 10000
|
||||||
|
|
||||||
|
|
||||||
|
redis_pidfile: "/run/redis_{{ redis_port }}.pid"
|
||||||
|
|
||||||
|
redis_port: 6379
|
||||||
|
|
||||||
|
redis_requirepass: ""
|
||||||
|
|
||||||
|
# To enable tls_port set port=0
|
||||||
|
redis_tls_port: 6379
|
||||||
|
redis_tls_cert_file: ""
|
||||||
|
redis_tls_key_file: ""
|
||||||
|
|
||||||
|
redis_tls_ca_cert_file: ""
|
||||||
|
redis_tls_ca_cert_dir: ""
|
||||||
|
redis_tls_protocols: "TLSv1.2 TLSv1.3"
|
||||||
|
|
||||||
|
redis_unix_socket: "/run/redis.sock"
|
||||||
|
redis_unix_permissions: "700"
|
@ -1,2 +1,7 @@
|
|||||||
---
|
---
|
||||||
# handlers file for redis
|
# handlers file for redis
|
||||||
|
|
||||||
|
- name: "Restart redis"
|
||||||
|
systemd:
|
||||||
|
name: redis.service
|
||||||
|
state: restarted
|
||||||
|
@ -1,2 +1,11 @@
|
|||||||
---
|
---
|
||||||
# tasks file for redis
|
# tasks file for redis
|
||||||
|
|
||||||
|
- name: "Create redis config"
|
||||||
|
template:
|
||||||
|
src: etc/redis/redis.conf.j2
|
||||||
|
dest: /etc/redis/redis.conf
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
mode: "0600" # config can contain secrets
|
||||||
|
notify: Restart redis
|
2346
templates/etc/redis/redis.conf.j2
Normal file
2346
templates/etc/redis/redis.conf.j2
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user