mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Finished simpleicons implementation
This commit is contained in:
		
							
								
								
									
										30
									
								
								roles/docker-simpleicons/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								roles/docker-simpleicons/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| --- | ||||
| - name: "include docker-compose role" | ||||
|   include_role:  | ||||
|     name: docker-compose | ||||
|   when: run_once_docker_simpleicons is not defined | ||||
|  | ||||
| - name: "include role nginx-domain-setup for {{application_id}}" | ||||
|   include_role: | ||||
|     name: nginx-domain-setup | ||||
|   vars: | ||||
|     domain:   "{{ domains | get_domain(application_id) }}" | ||||
|     http_port:   "{{ ports.localhost.http[application_id] }}" | ||||
|   when: run_once_docker_simpleicons is not defined | ||||
|  | ||||
| - name: "Copy '{{ application_id }}' files" | ||||
|   template: | ||||
|     src: "{{ item.source }}" | ||||
|     dest: "{{ item.target }}" | ||||
|     mode: '0755' | ||||
|   loop: | ||||
|     - { source: "server.js.j2",    target: "{{ simpleicons_host_server_file }}" } | ||||
|     - { source: "package.json.j2",  target: "{{ simpleicons_host_package_file }}" } | ||||
|   notify: | ||||
|     - docker compose up | ||||
|   when: run_once_docker_simpleicons is not defined | ||||
|  | ||||
| - name: run the simpleicons tasks once | ||||
|   set_fact: | ||||
|     run_once_docker_portfolio: true | ||||
|   when: run_once_docker_simpleicons is not defined | ||||
		Reference in New Issue
	
	Block a user