From 8f18ff8c8591c0b316422ebaf2d83271672f233f Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 11 Sep 2024 20:35:31 -0700 Subject: [PATCH] Creating the html-deployer user for web deployment stuff over ssh --- ansible/playbooks/setup-git-web-deployer.yml | 14 ++++++++++++++ infra/containers/docker-compose.yaml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ansible/playbooks/setup-git-web-deployer.yml diff --git a/ansible/playbooks/setup-git-web-deployer.yml b/ansible/playbooks/setup-git-web-deployer.yml new file mode 100644 index 0000000..0ca5020 --- /dev/null +++ b/ansible/playbooks/setup-git-web-deployer.yml @@ -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 diff --git a/infra/containers/docker-compose.yaml b/infra/containers/docker-compose.yaml index 7650580..6cbaaf7 100644 --- a/infra/containers/docker-compose.yaml +++ b/infra/containers/docker-compose.yaml @@ -5,7 +5,7 @@ networks: services: gitea: - image: gitea/gitea:latest + image: gitea/gitea:latest-rootless container_name: gitea environment: - USER_UID=1000