28 lines
659 B
YAML
28 lines
659 B
YAML
---
|
|
- 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: /tmp/gitea
|
|
mode: '0511'
|
|
|
|
- name: Copy file with owner and permissions
|
|
ansible.builtin.copy:
|
|
src: /tmp/gitea
|
|
dest: /usr/local/bin/gitea1
|
|
mode: '0511'
|
|
remote_src: yes
|
|
|
|
- name: Start service gitea on debian, if not running
|
|
ansible.builtin.systemd:
|
|
name: gitea
|
|
state: started
|