homeserver/roles/tmaurice.gitea/molecule/default/prepare.yml
mg 651164f26f Update tmaurice.gitea (#294)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#294
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-01-10 09:01:52 +01:00

28 lines
600 B
YAML

---
- name: Prepare
hosts: all
become: true
tasks:
- name: install dependencies for gitea (RedHat based systems)
yum:
name: "{{ redhat_packages }}"
state: present
update_cache: true
when: ansible_os_family == "RedHat"
- name: install dependencies for gitea (Debian based systems)
apt:
name: "{{ debian_packages }}"
state: present
update_cache: true
when: ansible_os_family == "Debian"
vars:
debian_packages:
- git
- curl
- xz-utils
redhat_packages:
- git
- curl
- xz