mirror of
				https://gitea.0xace.cc/ansible-galaxy/redis.git
				synced 2025-11-04 05:37:24 +00:00 
			
		
		
		
	split templates to Debian and RedHat specific
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- name: Template redis-sentinel config
 | 
					- name: Template redis-sentinel config
 | 
				
			||||||
  blockinfile:
 | 
					  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"
 | 
					    path: "/etc/redis/sentinel.conf"
 | 
				
			||||||
  notify:
 | 
					  notify:
 | 
				
			||||||
    - Restart redis-sentinel
 | 
					    - Restart redis-sentinel
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  - name: Template redis config
 | 
					  - name: Template redis config
 | 
				
			||||||
    blockinfile:
 | 
					    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"
 | 
					      path: "/etc/redis/redis.conf"
 | 
				
			||||||
    notify:
 | 
					    notify:
 | 
				
			||||||
      - Restart redis
 | 
					      - Restart redis
 | 
				
			||||||
@@ -36,7 +36,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- name: Template redis auth config
 | 
					- name: Template redis auth config
 | 
				
			||||||
  blockinfile:
 | 
					  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"
 | 
					    path: "/etc/redis/redis-auth.conf"
 | 
				
			||||||
  notify:
 | 
					  notify:
 | 
				
			||||||
    - Restart redis
 | 
					    - Restart redis
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								templates/RedHat/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								templates/RedHat/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user