fix: first jinja templates

This commit is contained in:
Markus Pesch 2024-03-30 19:11:14 +01:00
parent ffcc9201ac
commit 153732e83b
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
4 changed files with 2391 additions and 0 deletions

View File

@ -1,2 +1,33 @@
---
# 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"

View File

@ -1,2 +1,7 @@
---
# handlers file for redis
- name: "Restart redis"
systemd:
name: redis.service
state: restarted

View File

@ -1,2 +1,11 @@
---
# 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

File diff suppressed because it is too large Load Diff