Creating the html-deployer user for web deployment stuff over ssh

This commit is contained in:
shockrah 2024-09-11 20:35:31 -07:00
parent c2099e2133
commit 8f18ff8c85
2 changed files with 15 additions and 1 deletions

View 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

View File

@ -5,7 +5,7 @@ networks:
services:
gitea:
image: gitea/gitea:latest
image: gitea/gitea:latest-rootless
container_name: gitea
environment:
- USER_UID=1000