New structure

This commit is contained in:
2024-03-06 10:56:21 +00:00
parent f717d9ca0d
commit ca5b61e58b
38 changed files with 706 additions and 4 deletions

32
playbooks/gitea.yml Normal file
View File

@@ -0,0 +1,32 @@
---
- hosts: gitea
become: true
become_user: root
tasks:
- name: gitea.yml | Stop service gitea on debian, if running
ansible.builtin.systemd:
name: gitea
state: stopped
- name: gitea.yml | Download newest gitea binary
ansible.builtin.get_url:
url: "{{ var_gitea_url }}"
dest: /tmp/gitea
mode: '0511'
- name: gitea.yml | Copy file with owner and permissions
ansible.builtin.copy:
src: /tmp/gitea
dest: /usr/local/bin/gitea
mode: '0511'
remote_src: yes
- name: gitea.yml | Start service gitea on debian, if not running
ansible.builtin.systemd:
name: gitea
state: started
- name: gitea.yml | clean and remove /tmp directory
ansible.builtin.file:
path: /tmp/gitea
state: absent