mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-30 18:31:28 +01:00 
			
		
		
		
	Update to 2021-12-01 19:13
This commit is contained in:
		
							
								
								
									
										25
									
								
								roles/backuppc/templates/httpd.conf.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								roles/backuppc/templates/httpd.conf.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <Directory /usr/share/BackupPC/> | ||||
|   SSLRequireSSL on | ||||
| {% if bpc_auth == "lemonldap" %} | ||||
|   PerlHeaderParserHandler Lemonldap::NG::Handler | ||||
| {% elif bpc_auth == "lemonldap2" %} | ||||
|   PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2 | ||||
| {% elif bpc_auth == "basic" %} | ||||
|   AuthType Basic | ||||
|   AuthUserFile /etc/BackupPC/apache.users | ||||
|   AuthName "BackupPC" | ||||
|   Require valid-user | ||||
| {% endif %} | ||||
|  | ||||
| {% if bpc_src_ip | length < 1 %} | ||||
|   Require all denied | ||||
| {% else %} | ||||
|   Require ip {{ bpc_src_ip | join(' ') }} | ||||
| {% endif %} | ||||
| </Directory> | ||||
|  | ||||
| {% if bpc_auth != False and bpc_auth != 'none' and bpc_alias_on_main_vhost == True %} | ||||
| Alias           /BackupPC/images        /usr/share/BackupPC/html/ | ||||
| ScriptAlias     /BackupPC               /usr/share/BackupPC/sbin/BackupPC_Admin | ||||
| ScriptAlias     /backuppc               /usr/share/BackupPC/sbin/BackupPC_Admin | ||||
| {% endif %} | ||||
							
								
								
									
										3
									
								
								roles/backuppc/templates/sudoers.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								roles/backuppc/templates/sudoers.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Defaults:backuppc !requiretty | ||||
| Cmnd_Alias BACKUPPC = /usr/bin/rsync, /bin/tar, /bin/gtar, /usr/local/bin/pre-backup, /usr/local/bin/post-backup, /usr/bin/virt-backup | ||||
| backuppc ALL=(root) NOPASSWD: BACKUPPC | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud