This commit is contained in:
uumas
2022-05-12 00:48:15 +03:00
parent 49ddfcc0a9
commit ad33ffca06
3 changed files with 5 additions and 30 deletions

View File

@@ -2,10 +2,13 @@
dependencies:
- role: container
docker_proxy_target_protocol: https
docker_service: unifi
docker_image: jacobalberty/unifi:latest
docker_network_mode: host
docker_volumes:
- unifi_data:/unifi
docker_env:
UNIFI_HTTPS_PORT: "{{ ports.unifi.https }}"
PORTAL_HTTP_PORT: "8808"

View File

@@ -1,28 +0,0 @@
---
- name: Create git group on host for gitea ssh
group:
name: git
gid: 2132
system: yes
- name: Create git user on host for gitea ssh
user:
name: git
uid: 2132
group: git
system: yes
home: /var/lib/gitea
generate_ssh_key: yes
register: git_user
- name: Add git user's own ssh key to its authorized keys
authorized_key:
user: git
key: "{{ git_user.ssh_public_key }}"
- name: Put gitea ssh forwarder in place
template:
src: gitea_ssh_forward.j2
dest: /usr/local/bin/gitea
mode: '755'