mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 10:51:27 +01:00 
			
		
		
		
	Update to 2022-03-07 16:00
This commit is contained in:
		
							
								
								
									
										9
									
								
								roles/unmaintained/matrix_riot/tasks/archive_post.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/unmaintained/matrix_riot/tasks/archive_post.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
|  | ||||
| - import_tasks: ../includes/webapps_compress_archive.yml | ||||
|   vars: | ||||
|     - root_dir: "{{ riot_root_dir }}" | ||||
|     - version: "{{ riot_current_version }}" | ||||
|   when: riot_install_mode == 'upgrade' | ||||
|   tags: matrix | ||||
|  | ||||
							
								
								
									
										7
									
								
								roles/unmaintained/matrix_riot/tasks/archive_pre.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								roles/unmaintained/matrix_riot/tasks/archive_pre.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| --- | ||||
|  | ||||
| - import_tasks: ../includes/webapps_archive.yml | ||||
|   vars: | ||||
|     - root_dir: "{{ riot_root_dir }}" | ||||
|     - version: "{{ riot_current_version }}" | ||||
|   tags: matrix | ||||
							
								
								
									
										8
									
								
								roles/unmaintained/matrix_riot/tasks/cleanup.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								roles/unmaintained/matrix_riot/tasks/cleanup.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| --- | ||||
|  | ||||
| - name: Remove temp files | ||||
|   file: path={{ riot_root_dir }}/tmp/{{ item }} state=absent | ||||
|   with_items: | ||||
|     - riot-v{{ riot_version }}.tar.gz | ||||
|     - riot-v{{ riot_version }} | ||||
|   tags: matrix | ||||
							
								
								
									
										15
									
								
								roles/unmaintained/matrix_riot/tasks/conf.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								roles/unmaintained/matrix_riot/tasks/conf.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| --- | ||||
|  | ||||
| - name: Remove sample config file | ||||
|   file: path={{ riot_root_dir }}/web/config.sample.json state=absent | ||||
|   tags: matrix | ||||
|  | ||||
| - name: Deploy configuration | ||||
|   template: src=config.json.j2 dest={{ riot_root_dir }}/web/config.json | ||||
|   tags: matrix | ||||
|  | ||||
| - name: Deploy httpd configuration | ||||
|   template: src=httpd.conf.j2 dest=/etc/httpd/ansible_conf.d/10-riot_{{ riot_id }}.conf | ||||
|   notify: reload httpd | ||||
|   tags: matrix | ||||
|  | ||||
							
								
								
									
										11
									
								
								roles/unmaintained/matrix_riot/tasks/directories.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								roles/unmaintained/matrix_riot/tasks/directories.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| --- | ||||
|  | ||||
| - name: Create directory structure | ||||
|   file: path={{ riot_root_dir }}/{{ item.dir }} state=directory owner={{ item.owner | default(omit) }} group={{ item.group | default(omit) }} mode={{ item.mode | default(omit) }} | ||||
|   with_items: | ||||
|     - dir: tmp | ||||
|     - dir: archives | ||||
|       mode: 700 | ||||
|     - dir: meta | ||||
|       mode: 700 | ||||
|   tags: matrix | ||||
							
								
								
									
										12
									
								
								roles/unmaintained/matrix_riot/tasks/facts.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/unmaintained/matrix_riot/tasks/facts.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| --- | ||||
|  | ||||
| - import_tasks: ../includes/webapps_set_install_mode.yml | ||||
|   vars: | ||||
|     - root_dir: "{{ riot_root_dir }}" | ||||
|     - version: "{{ riot_version }}" | ||||
|   tags: matrix | ||||
| - set_fact: riot_install_mode={{ (install_mode == 'upgrade' and not riot_manage_upgrade) | ternary('none',install_mode) }} | ||||
|   tags: matrix | ||||
| - set_fact: riot_current_version={{ current_version | default('') }} | ||||
|   tags: matrix | ||||
|  | ||||
							
								
								
									
										28
									
								
								roles/unmaintained/matrix_riot/tasks/install.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								roles/unmaintained/matrix_riot/tasks/install.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| --- | ||||
|  | ||||
| - name: Download Riot | ||||
|   get_url: | ||||
|     url: "https://github.com/vector-im/riot-web/releases/download/v{{ riot_version }}/riot-v{{ riot_version }}.tar.gz" | ||||
|     dest: "{{ riot_root_dir }}/tmp/" | ||||
|     checksum: "sha1:{{ riot_archive_sha1 }}" | ||||
|   when: riot_install_mode != 'none' | ||||
|   tags: matrix | ||||
|  | ||||
| - name: Extract riot archive | ||||
|   unarchive: | ||||
|     src: "{{ riot_root_dir }}/tmp/riot-v{{ riot_version }}.tar.gz" | ||||
|     dest: "{{ riot_root_dir }}/tmp/" | ||||
|     remote_src: True | ||||
|   when: riot_install_mode != 'none' | ||||
|   tags: matrix | ||||
|  | ||||
| - name: Move the content of riot to the correct top directory | ||||
|   synchronize: | ||||
|     src: "{{ riot_root_dir }}/tmp/riot-v{{ riot_version }}/" | ||||
|     dest: "{{ riot_root_dir }}/web/" | ||||
|     recursive: True | ||||
|     delete: True | ||||
|   delegate_to: "{{ inventory_hostname }}" | ||||
|   when: riot_install_mode != 'none' | ||||
|   tags: matrix | ||||
|  | ||||
							
								
								
									
										13
									
								
								roles/unmaintained/matrix_riot/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								roles/unmaintained/matrix_riot/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| --- | ||||
|  | ||||
| - include: facts.yml | ||||
| - include: directories.yml | ||||
| - include: archive_pre.yml | ||||
|   when: riot_install_mode == 'upgrade' | ||||
| - include: install.yml | ||||
| - include: conf.yml | ||||
| - include: archive_post.yml | ||||
|   when: riot_install_mode == 'upgrade' | ||||
| - include: write_version.yml | ||||
| - include: cleanup.yml | ||||
|  | ||||
							
								
								
									
										7
									
								
								roles/unmaintained/matrix_riot/tasks/write_version.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								roles/unmaintained/matrix_riot/tasks/write_version.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| --- | ||||
|  | ||||
| - import_tasks: ../includes/webapps_post.yml | ||||
|   vars: | ||||
|     - root_dir: "{{ riot_root_dir }}" | ||||
|     - version: "{{ riot_version }}" | ||||
|   tags: matrix | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud