sync roles with changes from OWS

This commit is contained in:
Oli
2023-10-21 13:13:20 +00:00
parent e14271eab0
commit ccd75528ed
43 changed files with 479 additions and 107 deletions

View File

@@ -1,4 +1,5 @@
---
# If port 0 is specified Redis will not listen on a TCP socket.
redis_port: 0
redis_port: 0 # If port 0 is specified Redis will not listen on a TCP socket.
redis_unixsocket: "/var/run/redis/redis.sock"
redis_unixsocketperm: 770

View File

@@ -4,11 +4,10 @@
name: redis
state: present
- name: Copy redis config
template:
src: redis.conf.j2
dest: /etc/redis/redis.conf
owner: redis
group: redis
mode: "0640"
- name: Configure redis
lineinfile:
path: /etc/redis/redis.conf
regexp: '^#?{{ item.option }} .*'
line: '{{ item.option }} {{ item.value }}'
loop: "{{ redis_options }}"
notify: Restart redis

View File

@@ -1,4 +1,6 @@
---
redis_unixsocket: "/var/run/redis/redis.sock"
redis_unixsocketperm: 770
redis_options:
- {option: port, value: "{{ redis_port }}"}
- {option: unixsocket, value: "{{ redis_unixsocket }}"}
- {option: unixsocketperm, value: "{{ redis_unixsocketperm }}"}