Replace json.j2 template with copy and content
This commit is contained in:
		
							parent
							
								
									4cc94969f5
								
							
						
					
					
						commit
						cb10a962e3
					
				
					 6 changed files with 9 additions and 14 deletions
				
			
		|  | @ -7,10 +7,10 @@ | |||
|     path: "{{ config_path }}" | ||||
|     state: directory | ||||
|     mode: "0755" | ||||
| - name: Copy the acme-dns-accounts | ||||
|   ansible.builtin.template: | ||||
|     src: "json.j2" | ||||
| - name: Create the acme-dns-accounts | ||||
|   ansible.builtin.copy: | ||||
|     dest: "{{ (config_path, 'acme-dns-accounts.json') | path_join }}" | ||||
|     content: '{{ vault_acmedns_registered | acmedns_to_lego | to_json }}' | ||||
|     mode: "0644" | ||||
| - name: Copy the hook script | ||||
|   ansible.builtin.copy: | ||||
|  |  | |||
|  | @ -5,7 +5,6 @@ | |||
| - name: Deploy {{ role_name }} | ||||
|   vars: | ||||
|     env: "{{ lego_env }}" | ||||
|     json: "{{ vault_acmedns_registered | acmedns_to_lego }}" | ||||
|     compose: "{{ lego_compose }}" | ||||
|   block: | ||||
|     - name: Import prepare tasks for common service | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue