Compare commits

...

2 Commits

Author SHA1 Message Date
16c0e5ee98 html-deployer setup with keys
Some checks failed
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 37s
Actions demo / simple-echo (push) Has been cancelled
2024-09-11 21:22:25 -07:00
8f18ff8c85 Creating the html-deployer user for web deployment stuff over ssh 2024-09-11 21:22:25 -07:00
2 changed files with 19 additions and 1 deletions

View 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') }}"

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