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,7 +5,6 @@ | |||
| - name: Deploy {{ role_name }} | ||||
|   vars: | ||||
|     svc: "{{ deploy_svc }}" | ||||
|     yml: "{{ deploy_yml }}" | ||||
|     compose: "{{ deploy_compose }}" | ||||
|   block: | ||||
|     - name: Import prepare tasks for common service | ||||
|  | @ -21,10 +20,10 @@ | |||
|         state: directory | ||||
|         mode: "0755" | ||||
| 
 | ||||
|     - name: Template main config | ||||
|       ansible.builtin.template: | ||||
|         src: yml.j2 | ||||
|     - name: Create main config | ||||
|       ansible.builtin.copy: | ||||
|         dest: "{{ (config_path, 'hooks.yml') | path_join }}" | ||||
|         content: '{{ deploy_yml | to_nice_yaml }}' | ||||
|         mode: "0644" | ||||
| 
 | ||||
|     - name: Copy the deploy-reitanlage_oranienburg script | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue