forked from rc/classroom
		
	Fix typos in dependencies, add missing files
This commit is contained in:
		
							parent
							
								
									5f2d47b9b5
								
							
						
					
					
						commit
						14a317736e
					
				
					 5 changed files with 40 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -7,4 +7,4 @@
 | 
			
		|||
dependencies:
 | 
			
		||||
  - role: putty
 | 
			
		||||
  - role: vivado
 | 
			
		||||
  - role: cp210x-vcp-drivers-win10
 | 
			
		||||
  - role: cp2102_driver
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								roles/algobuilder/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								roles/algobuilder/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
- import_tasks: main_win.yml
 | 
			
		||||
  when: ansible_connection == 'winrm'
 | 
			
		||||
- import_tasks: main_lin.yml
 | 
			
		||||
  when: ansible_connection == 'ssh'
 | 
			
		||||
							
								
								
									
										4
									
								
								roles/algobuilder/tasks/main_lin.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								roles/algobuilder/tasks/main_lin.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
- name: Do not install AlgoBuilder
 | 
			
		||||
  debug:
 | 
			
		||||
    msg: "Do not install AlgoBuilder on Linux"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										30
									
								
								roles/algobuilder/tasks/main_win.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								roles/algobuilder/tasks/main_win.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
# TODO check install status
 | 
			
		||||
- name: Check AlgoBuilder install status
 | 
			
		||||
  win_stat:
 | 
			
		||||
    path: C:\Program Files (x86)\Thonny\thonny.exe
 | 
			
		||||
  register: file
 | 
			
		||||
 | 
			
		||||
- when: not file.stat.exists
 | 
			
		||||
  block:
 | 
			
		||||
    - name: Download AlgoBuilder
 | 
			
		||||
      win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EZhqHxJoAfdEjdlMu0uGWGcBOqrT0vTVv2_nhynWZ3fOwQ?e=rcskhq&download=1" -O C:\AlgoBuilderSuite.exe
 | 
			
		||||
      args:  
 | 
			
		||||
        creates: C:\AlgoBuilderSuite.exe
 | 
			
		||||
      #win_get_url:
 | 
			
		||||
      #  follow_redirects: all
 | 
			
		||||
      #  http_agent: Wget/1.21.3
 | 
			
		||||
      # url: https://unilj-my.sharepoint.com/:u:/r/personal/rozman_fri1_uni-lj_si/Documents/Arhiv/ImportantFiles/AlgoBuilderSuite.exe?download=1
 | 
			
		||||
      #  dest: C:\AlgoBuilderSuite.exe
 | 
			
		||||
      #register: download
 | 
			
		||||
    
 | 
			
		||||
    - name: Install AlgoBuilder
 | 
			
		||||
      win_package:
 | 
			
		||||
        path: C:\AlgoBuilderSuite.exe
 | 
			
		||||
        # path: "{{ download.dest }}"
 | 
			
		||||
        arguments: /Verysilent /AllUsers
 | 
			
		||||
    
 | 
			
		||||
    - name: Remove temporary files
 | 
			
		||||
      win_file:
 | 
			
		||||
        path: C:\AlgoBuilderSuite.exe
 | 
			
		||||
        # path: "{{ download.dest }}"
 | 
			
		||||
        state: absent
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
- name: Install PowerDesigner
 | 
			
		||||
  win_package:
 | 
			
		||||
    path: "{{ installers }}\\PowerDesigner 12.5\\cd1\\setup\\setup.exe"
 | 
			
		||||
    arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\" /f2\"C:\powerdesigner_log.iss\""
 | 
			
		||||
    arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\" /f2\"C:\\powerdesigner_log.iss\""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue