mirror of
				https://gitea.0xace.cc/ansible-galaxy/redis.git
				synced 2025-11-04 13:47:24 +00:00 
			
		
		
		
	split templates to Debian and RedHat specific
This commit is contained in:
		@@ -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
									
								
							
		Reference in New Issue
	
	Block a user