split templates to Debian and RedHat specific

This commit is contained in:
ace 2021-11-16 13:46:08 +03:00
parent c020c98f27
commit 1eab6a03e0
No known key found for this signature in database
GPG Key ID: E805F7888C3ED7C0
7 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
- name: Template redis-sentinel config
blockinfile:
block: "{{ lookup('template', 'etc/redis/sentinel.conf.j2') }}"
block: "{{ lookup('template', '{{ ansible_os_family }}/etc/redis/sentinel.conf.j2') }}"
path: "/etc/redis/sentinel.conf"
notify:
- Restart redis-sentinel

View File

@ -18,7 +18,7 @@
- name: Template redis config
blockinfile:
block: "{{ lookup('template', 'etc/redis/redis.conf.j2') }}"
block: "{{ lookup('template', '{{ ansible_os_family }}/etc/redis/redis.conf.j2') }}"
path: "/etc/redis/redis.conf"
notify:
- Restart redis
@ -36,7 +36,7 @@
- name: Template redis auth config
blockinfile:
block: "{{ lookup('template', 'etc/redis/redis-auth.conf.j2') }}"
block: "{{ lookup('template', '{{ ansible_os_family }}/etc/redis/redis-auth.conf.j2') }}"
path: "/etc/redis/redis-auth.conf"
notify:
- Restart redis

View File