Gitea broken into roles for better management.

Changed hosts to gondor so that limiting is not necessary
This commit is contained in:
tanshu committed 2024-01-22 14:41:55 +05:30
1 parent aa589960b1
commit 5736e305e4
8 files changed
+147 -133

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
---
# Tasks for Passthrough role
- name: Check if ssh passthrough file exists
stat:
path: /usr/local/bin/gitea
register: pass_status
- name: No need to upload ssh passthrough file
when: pass_status.stat.exists == true
debug:
msg: No need to upload ssh passthrough file as it already exists.
- name: Upload ssh passthrough file
when: pass_status.stat.exists == false
template:
src: "files/gitea"
dest: "/usr/local/bin/gitea"
owner: "{{ user }}"
group: "{{ user }}"
mode: 0755