mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
23 lines
505 B
YAML
23 lines
505 B
YAML
|
---
|
||
|
- name: Perpare
|
||
|
hosts: all
|
||
|
become: true
|
||
|
tasks:
|
||
|
- name: install dependencies for gitea (RedHat based systems)
|
||
|
yum:
|
||
|
name: "{{ packages }}"
|
||
|
state: present
|
||
|
update_cache: true
|
||
|
when: ansible_os_family == "RedHat"
|
||
|
- name: install dependencies for gitea (Debian based systems)
|
||
|
apt:
|
||
|
name: "{{ packages }}"
|
||
|
state: present
|
||
|
update_cache: true
|
||
|
when: ansible_os_family == "Debian"
|
||
|
|
||
|
vars:
|
||
|
packages:
|
||
|
- git
|
||
|
- curl
|