use appstream package on rocky8
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Robert Kaussow 2021-10-19 22:24:05 +02:00
parent f20e5031ed
commit af2148f603
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
6 changed files with 28 additions and 7 deletions

View File

@ -1,7 +1,8 @@
--- ---
# @var redis_packages:description: Define a list of packages to install. # @var redis_packages:description: >
redis_packages: # Define a list of packages to install. The default packages depend on the OS version.
- redis5 # @end
# @var redis_packages:default: $ "_unset_"
# @var redis_packages_extra:description: Can be used to install other dependency packages. # @var redis_packages_extra:description: Can be used to install other dependency packages.
redis_packages_extra: [] redis_packages_extra: []

View File

@ -1,9 +1,5 @@
--- ---
- name: Converge - name: Converge
hosts: all hosts: all
vars:
redis_packages_extra:
- https://repo.ius.io/ius-release-el7.rpm
- https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
roles: roles:
- role: xoxys.redis - role: xoxys.redis

View File

@ -1,2 +1,15 @@
--- ---
- include_vars: "{{ var_files }}"
vars:
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
params:
files:
- "{{ ansible_lsb.id | default('') | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family | lower }}.yml"
paths:
- "vars"
when: var_files
- include_tasks: overwrites.yml
- include_tasks: setup.yml - include_tasks: setup.yml

5
tasks/overwrites.yml Normal file
View File

@ -0,0 +1,5 @@
---
- name: Define redis_packages
set_fact:
redis_packages: "{{ __redis_packages | list }}"
when: redis_packages is not defined

3
vars/redhat-7.yml Normal file
View File

@ -0,0 +1,3 @@
---
__redis_packages:
- redis5

3
vars/redhat-8.yml Normal file
View File

@ -0,0 +1,3 @@
---
__redis_packages:
- "@redis:6"