Fix pre-commit hooks and move directories
roles/ and inventory/ are now in playbooks/ also fixed issues reported by ansible-lint
This commit is contained in:
		
							parent
							
								
									dc398ddb6e
								
							
						
					
					
						commit
						4104057771
					
				
					 123 changed files with 91 additions and 39 deletions
				
			
		
							
								
								
									
										12
									
								
								playbooks/roles/lego/files/hooks/auth.serguzim.me
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								playbooks/roles/lego/files/hooks/auth.serguzim.me
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #!/usr/bin/env sh | ||||
| 
 | ||||
| domain="auth.serguzim.me" | ||||
| 
 | ||||
| _install() { | ||||
|   install --owner=root --group=root --mode=600 \ | ||||
| 	  "$CERTIFICATES_PATH/$domain.$1" \ | ||||
| 	  "/opt/services/authentik/certs/$domain.$2" | ||||
| } | ||||
| 
 | ||||
| _install crt pem | ||||
| _install key key | ||||
							
								
								
									
										16
									
								
								playbooks/roles/lego/files/hooks/db.serguzim.me
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								playbooks/roles/lego/files/hooks/db.serguzim.me
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| #!/usr/bin/env sh | ||||
| 
 | ||||
| domain="db.serguzim.me" | ||||
| 
 | ||||
| _install() { | ||||
|   install --owner=postgres --group=postgres --mode=600 \ | ||||
| 	  "$CERTIFICATES_PATH/$domain.$1" \ | ||||
| 	  "/var/lib/postgres/data/server.$1" | ||||
| } | ||||
| 
 | ||||
| _install crt | ||||
| _install key | ||||
| 
 | ||||
| sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload | ||||
| 
 | ||||
| # vim: ft=sh | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue