homeserver/roles/tmaurice.gitea/molecule/default/prepare.yml

28 lines
600 B
YAML
Raw Normal View History

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