Added new Gitea Environmnent
This commit is contained in:
20
gitea2.yml
Normal file
20
gitea2.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- hosts: gitea
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
tasks:
|
||||||
|
- name: Stop service gitea on debian, if running
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: gitea
|
||||||
|
state: stopped
|
||||||
|
|
||||||
|
- name: Download newest gitea binary
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "{{ var_gitea_url }}"
|
||||||
|
dest: /usr/local/bin/gitea
|
||||||
|
mode: '0511'
|
||||||
|
|
||||||
|
- name: Start service gitea on debian, if not running
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: gitea
|
||||||
|
state: started
|
Reference in New Issue
Block a user