gitea postgres now talk

This commit is contained in:
Ibrahim Mkusa 2024-09-07 19:31:04 -04:00
parent 067dde6db8
commit 53259a3ebb

View File

@ -7,7 +7,7 @@
vars: vars:
postgresql_user: gitea postgresql_user: gitea
postgresql_db: giteadb postgresql_db: giteadb
container_network: gitea_network container_network: host
gitea_directory: /home/ubuntu/hifadhi_kuu/gitea gitea_directory: /home/ubuntu/hifadhi_kuu/gitea
tasks: tasks:
- name: install postgresql - name: install postgresql
@ -79,9 +79,9 @@
pull: pull:
platform: amd64 platform: amd64
- name: create network the docker container will run in # - name: create network the docker container will run in
community.docker.docker_network: # community.docker.docker_network:
name: "{{container_network}}" # name: "{{container_network}}"
- name: run and make persistant gitea container - name: run and make persistant gitea container
community.docker.docker_container: community.docker.docker_container:
@ -105,4 +105,5 @@
- ./config:/etc/gitea - ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
recreate: true
working_dir: "{{gitea_directory}}" working_dir: "{{gitea_directory}}"