Added Gitea Playbook
This commit is contained in:
20
gitea.yml
Normal file
20
gitea.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: https://dl.gitea.com/gitea/1.21/gitea-1.21-linux-amd64
|
||||||
|
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