Creating the html-deployer user for web deployment stuff over ssh
This commit is contained in:
14
ansible/playbooks/setup-git-web-deployer.yml
Normal file
14
ansible/playbooks/setup-git-web-deployer.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- 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
|
||||||
|
generate_ssh_key: true
|
||||||
|
ssh_key_comment: Generated by Ansible for Gitea Actions
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user