Improve reuse of tasks
This commit is contained in:
		
							parent
							
								
									13cf7a05ee
								
							
						
					
					
						commit
						3b5e27be2f
					
				
					 7 changed files with 8 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -2,8 +2,8 @@
 | 
			
		|||
- name: Deploy acme-dns
 | 
			
		||||
  tags: acme-dns
 | 
			
		||||
  block:
 | 
			
		||||
    - import_tasks: create-service-directory.yml
 | 
			
		||||
    - import_tasks: template-docker-compose.yml
 | 
			
		||||
    - import_tasks: steps/create-service-directory.yml
 | 
			
		||||
    - import_tasks: steps/template-docker-compose.yml
 | 
			
		||||
 | 
			
		||||
    - name: Setting the service config path
 | 
			
		||||
      ansible.builtin.set_fact:
 | 
			
		||||
| 
						 | 
				
			
			@ -21,4 +21,4 @@
 | 
			
		|||
        dest: "{{ (config_path, 'config.cfg') | path_join }}"
 | 
			
		||||
        mode: "0600"
 | 
			
		||||
 | 
			
		||||
    - import_tasks: template-site-config.yml
 | 
			
		||||
    - import_tasks: steps/template-site-config.yml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,4 @@
 | 
			
		|||
    - analytics
 | 
			
		||||
    - umami
 | 
			
		||||
  block:
 | 
			
		||||
    - import_tasks: create-service-directory.yml
 | 
			
		||||
    - import_tasks: template-docker-compose.yml
 | 
			
		||||
    - import_tasks: template-service-env.yml
 | 
			
		||||
    - import_tasks: template-site-config.yml
 | 
			
		||||
    - import_tasks: deploy-common-service.yml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								_ansible/tasks/deploy-common-service.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								_ansible/tasks/deploy-common-service.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
- import_tasks: steps/create-service-directory.yml
 | 
			
		||||
- import_tasks: steps/template-docker-compose.yml
 | 
			
		||||
- import_tasks: steps/template-service-env.yml
 | 
			
		||||
- import_tasks: steps/template-site-config.yml
 | 
			
		||||
		Reference in a new issue