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