mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-11-01 11:21:25 +01:00 
			
		
		
		
	Update to 2022-09-13 10:00
This commit is contained in:
		| @@ -6,15 +6,15 @@ | ||||
| # We do so by configuring certificate_file: letsencrypt:foo.example.org in SFTPGo configuration | ||||
| - name: Handle Let's Encrypt cert | ||||
|   set_fact: | ||||
|     sftpgo_conf: "{{ sftpgo_conf | combine({ item: {'certificate_file': sftpgo_root_dir ~ '/etc/ssl/' ~ item ~ '.crt', 'certificate_key_file': sftpgo_root_dir ~ '/etc/ssl/' ~ item ~ '.key'}}, recursive=True) }}" | ||||
|     sftpgo_conf: "{{ sftpgo_conf | combine({ item: {'bindings': {'certificate_file': sftpgo_root_dir ~ '/etc/ssl/' ~ item ~ '.crt', 'certificate_key_file': sftpgo_root_dir ~ '/etc/ssl/' ~ item ~ '.key'} } }, recursive=True) }}" | ||||
|   loop: | ||||
|     - ftpd | ||||
|     - webdavd | ||||
|     - httpd | ||||
|     - telemetry | ||||
|   when: | ||||
|     - sftpgo_conf[item].certificate_file is defined | ||||
|     - sftpgo_conf[item].certificate_file is search('^letsencrypt:') | ||||
|     - sftpgo_conf[item].bindings.certificate_file is defined | ||||
|     - sftpgo_conf[item].bindings.certificate_file is search('^letsencrypt:') | ||||
|   tags: sftpgo | ||||
|  | ||||
| - name: Deploy sftpgo config | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud