chore: handle rpm release version
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-01-28 13:59:24 +01:00
parent ee0ae5e729
commit 56444f7f5a
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
---
cups_version: 2.4.0-1
cups_version: 2.4.0
# @var cups_packages_extra:description: >
# Install dependencies or custom driver packages

View File

@ -1,10 +1,12 @@
---
__cups_version_comp: "{{ cups_version | split('-') }}"
__cups_download_url: https://gitea.rknet.org/rpmbuild/cups/releases/download/v{{ cups_version }}
__cups_packages:
- "{{ __cups_download_url }}/cups-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-libs-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-lpd-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-devel-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-{{ __cups_version_comp[0] }}-{{ __cups_version_comp[1] | default('0') }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-libs-{{ __cups_version_comp[0] }}-{{ __cups_version_comp[1] | default('0') }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-lpd-{{ __cups_version_comp[0] }}-{{ __cups_version_comp[1] | default('0') }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-devel-{{ __cups_version_comp[0] }}-{{ __cups_version_comp[1] | default('0') }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
__pam_config:
- type: "auth"