mirror of
https://gitea.0xace.cc/ansible-galaxy/redis.git
synced 2024-11-24 23:36:40 +00:00
split templates to Debian and RedHat specific
This commit is contained in:
parent
c020c98f27
commit
1eab6a03e0
@ -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
|
||||
|
@ -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
|
||||
|
0
templates/RedHat/.gitkeep
Normal file
0
templates/RedHat/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user