mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 02:41:36 +01:00 
			
		
		
		
	Update to 2021-12-01 19:13
This commit is contained in:
		
							
								
								
									
										16
									
								
								roles/patrix/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								roles/patrix/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| --- | ||||
|  | ||||
| # patrix_server: | ||||
| #  | ||||
| # | ||||
| # Auth can be done either with login / pass | ||||
| # patrix_user: | ||||
| # patrix_pass: | ||||
| #  | ||||
| # Or with an existing token | ||||
| # | ||||
| # patrix_token: | ||||
| # | ||||
| # patrix_room: | ||||
|  | ||||
| ... | ||||
							
								
								
									
										25
									
								
								roles/patrix/tasks/install_Debian.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								roles/patrix/tasks/install_Debian.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| --- | ||||
|  | ||||
| - name: Install dependencies | ||||
|   apt: | ||||
|     name: | ||||
|       - libwww-perl | ||||
|       - liblwp-protocol-https-perl | ||||
|       - libconfig-simple-perl | ||||
|       - libfile-homedir-perl | ||||
|       - libfile-mimeinfo-perl | ||||
|       - liburi-perl | ||||
|       - libjson-perl | ||||
|       - libterm-readkey-perl | ||||
|       - libhash-merge-simple-perl | ||||
|   tags: patrix | ||||
|  | ||||
| - name: Install patrix | ||||
|   get_url: | ||||
|     url: https://raw.githubusercontent.com/dani/patrix/master/scripts/patrix | ||||
|     dest: /usr/local/bin/patrix | ||||
|     mode: 0755 | ||||
|   environment: | ||||
|     - https_proxy: "{{ system_proxy | default('') }}" | ||||
|   tags: patrix | ||||
|  | ||||
							
								
								
									
										5
									
								
								roles/patrix/tasks/install_RedHat.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								roles/patrix/tasks/install_RedHat.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| --- | ||||
|  | ||||
| - name: Install patrix | ||||
|   yum: name=patrix | ||||
|   tags: patrix | ||||
							
								
								
									
										9
									
								
								roles/patrix/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/patrix/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
|  | ||||
| - include: install_{{ ansible_os_family }}.yml | ||||
|  | ||||
| - name: Deploy patrix config for root user | ||||
|   template: src=patrixrc.j2 dest=/root/.patrixrc mode='600' | ||||
|   tags: patrix | ||||
|  | ||||
| ... | ||||
							
								
								
									
										11
									
								
								roles/patrix/templates/patrixrc.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								roles/patrix/templates/patrixrc.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| [default] | ||||
| server = {{ patrix_server }} | ||||
| {% if patrix_user is defined and patrix_pass is defined %} | ||||
| user = {{ patrix_user }} | ||||
| password = {{ patrix_pass }} | ||||
| {% elif patrix_token is defined %} | ||||
| access_token = {{ patrix_token }} | ||||
| {% endif %} | ||||
| {% if patrix_room is defined %} | ||||
| room = {{ patrix_room }} | ||||
| {% endif %} | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud