Files
playbooks/gitea/roles/passthrough/tasks/main.yaml
T
tanshu 5736e305e4 Gitea broken into roles for better management.
Changed hosts to gondor so that limiting is not necessary
2024-01-22 14:41:55 +05:30

21 lines
517 B
YAML

---
# 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