Compare commits
	
		
			2 Commits
		
	
	
		
			c2099e2133
			...
			16c0e5ee98
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 16c0e5ee98 | |||
| 8f18ff8c85 | 
							
								
								
									
										18
									
								
								ansible/playbooks/setup-git-web-deployer.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								ansible/playbooks/setup-git-web-deployer.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					- hosts: webhost
 | 
				
			||||||
 | 
					  vars:
 | 
				
			||||||
 | 
					    username: html-deployer
 | 
				
			||||||
 | 
					  remote_user: webadmin
 | 
				
			||||||
 | 
					  tasks:
 | 
				
			||||||
 | 
					    - name: Create user for git actions to deploy html
 | 
				
			||||||
 | 
					      become: true
 | 
				
			||||||
 | 
					      user:
 | 
				
			||||||
 | 
					        name: "{{ username }}"
 | 
				
			||||||
 | 
					        comment: Used for deploying html from Gitea Actions
 | 
				
			||||||
 | 
					        group: nginx
 | 
				
			||||||
 | 
					    - name: Set the authorized keys
 | 
				
			||||||
 | 
					      become: true
 | 
				
			||||||
 | 
					      authorized_key:
 | 
				
			||||||
 | 
					        user: "{{ username }}"
 | 
				
			||||||
 | 
					        state: present
 | 
				
			||||||
 | 
					        key: "{{ lookup('file', '~/.ssh/vultr/html-deployer.pem.pub') }}"
 | 
				
			||||||
@ -5,7 +5,7 @@ networks:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  gitea:
 | 
					  gitea:
 | 
				
			||||||
    image: gitea/gitea:latest
 | 
					    image: gitea/gitea:latest-rootless
 | 
				
			||||||
    container_name: gitea
 | 
					    container_name: gitea
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      - USER_UID=1000
 | 
					      - USER_UID=1000
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user