mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #2867 from holta/kalite-softcode
Clean kalite/install.yml, including softcode of venv
This commit is contained in:
		
						commit
						7f48a08ac7
					
				
					 1 changed files with 10 additions and 10 deletions
				
			
		|  | @ -35,7 +35,7 @@ | |||
|   pip: | ||||
|     name: ka-lite-static | ||||
|     version: "{{ kalite_version }}" | ||||
|     virtualenv: "{{ kalite_venv }}"    # /usr/local/kalite/venv | ||||
|     virtualenv: "{{ kalite_venv }}" | ||||
|     virtualenv_site_packages: no | ||||
|     virtualenv_command: /usr/bin/virtualenv | ||||
|     virtualenv_python: python2.7 | ||||
|  | @ -59,23 +59,23 @@ | |||
|     dest: "/etc/{{ apache_conf_dir }}"    # apache2/sites-available on debuntu | ||||
|   when: apache_installed is defined | ||||
| 
 | ||||
| - name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes, if Raspbian/Debian < 11 or Ubuntu < 20 | ||||
|   replace: | ||||
|     path: /usr/local/kalite/venv/local/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py | ||||
|     regexp: 'a-zA-Z0-9' | ||||
|     replace: 'a-zA-Z0-9\-' | ||||
|   when: is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19 | ||||
|   # 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already. | ||||
| 
 | ||||
| - name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes, if Raspbian/Debian > 10 or Ubuntu > 19 | ||||
|   replace: | ||||
|     path: /usr/local/kalite/venv/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py | ||||
|     path: "{{ kalite_venv }}/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py"    # /usr/local/kalite/venv | ||||
|     regexp: 'a-zA-Z0-9' | ||||
|     replace: 'a-zA-Z0-9\-' | ||||
|   when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19) | ||||
|   # 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already. | ||||
|   # JV: why not just is_ubuntu_20? AH: to make this work on Ubuntu 21+ and ideally Debian/RaspiOS 11+ too? | ||||
| 
 | ||||
| - name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes, if Raspbian/Debian < 11 or Ubuntu < 20 | ||||
|   replace: | ||||
|     path: "{{ kalite_venv }}/local/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py" | ||||
|     regexp: 'a-zA-Z0-9' | ||||
|     replace: 'a-zA-Z0-9\-' | ||||
|   when: is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19 | ||||
|   # 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already. | ||||
| 
 | ||||
| - name: Create dir {{ kalite_root }} | ||||
|   file: | ||||
|     state: directory | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue