From 3e33e78d8f9b187d15708d84101f813e6fa421f7 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sat, 21 Sep 2024 22:18:47 -0400 Subject: [PATCH] download the gitea.service unit file --- playbooks/setup_database_gitea.yml | 59 ++---------------------------- 1 file changed, 4 insertions(+), 55 deletions(-) diff --git a/playbooks/setup_database_gitea.yml b/playbooks/setup_database_gitea.yml index d144a38..fff738a 100644 --- a/playbooks/setup_database_gitea.yml +++ b/playbooks/setup_database_gitea.yml @@ -128,58 +128,7 @@ group: git mode: '770' - - - - - - - - - - - - - - - - - - - -### BELOW will be deleted -# - name: install gitea container - #community.docker.docker_image: - #name: gitea/gitea - #source: pull - #pull: - #platform: amd64 - -## - name: create network the docker container will run in -## community.docker.docker_network: -## name: "{{container_network}}" - - #- name: run and make persistant gitea container - #community.docker.docker_container: - #name: gitea - #image: gitea/gitea - #state: started - #restart_policy: always - #ports: - #- "3000:3000" - #- "2222:2222" - #env: - #GITEA__database__DB_TYPE=postgres - #GITEA__database__HOST=localhost:5432 - #GITEA__database__NAME=giteadb - #GITEA__database__USER=gitea - #GITEA__database__PASSWD="{{postgresql_password}}" - #networks: - #- name: "{{container_network}}" - #volumes: - #- ./data:/var/lib/gitea - #- ./config:/etc/gitea - #- /etc/timezone:/etc/timezone:ro - #- /etc/localtime:/etc/localtime:ro - #recreate: false - #working_dir: "{{gitea_directory}}" + - name: download gitea systemd service + ansible.builtin.get_url: + url: https://raw.githubusercontent.com/go-gitea/gitea/refs/heads/release/v1.22/contrib/systemd/gitea.service + dest: /etc/systemd/system/gitea.service