Replace yml.j2 template with copy and content
This commit is contained in:
		
							parent
							
								
									36a54fef3d
								
							
						
					
					
						commit
						4cc94969f5
					
				
					 12 changed files with 41 additions and 51 deletions
				
			
		|  | @ -5,16 +5,15 @@ | |||
| - name: Deploy {{ role_name }} | ||||
|   vars: | ||||
|     svc: "{{ loki_svc }}" | ||||
|     yml: "{{ loki_yml }}" | ||||
|     compose: "{{ loki_compose }}" | ||||
|   block: | ||||
|     - name: Import prepare tasks for common service | ||||
|       ansible.builtin.import_tasks: tasks/prepare-common-service.yml | ||||
| 
 | ||||
|     - name: Template loki config file | ||||
|       ansible.builtin.template: | ||||
|         src: yml.j2 | ||||
|     - name: Create loki config | ||||
|       ansible.builtin.copy: | ||||
|         dest: "{{ (service_path, 'loki.yaml') | path_join }}" | ||||
|         content: '{{ loki_yml | to_nice_yaml }}' | ||||
|         mode: "0644" | ||||
|       notify: Restart service {{ role_name }} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue