Skip to content

Commit

Permalink
Merge pull request #9 from rgsystemes/feat-bullseye
Browse files Browse the repository at this point in the history
debian 11 workaround
  • Loading branch information
fidanf authored Sep 5, 2022
2 parents bbfc320 + 05b9d3c commit 6e8b8d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
- name: Load OS-specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ role_path }}/vars/{{ ansible_distribution_release }}.yml"
- "{{ role_path }}/vars/empty.yml"
tags: ['always']

- name: Set os_release to compute download URL
set_fact:
__os_release: "{{ os_release | default(ansible_distribution_release) }}"

- name: wkhtmltopdf | check if binary is present
find:
paths:
Expand All @@ -18,7 +29,7 @@

- name: wkhtmltopdf | download archive from GitHub
get_url:
url: "{{ wkhtmltopdf_base_url }}/{{ wkhtmltopdf_version }}/wkhtmltox_{{ wkhtmltopdf_version }}-1.{{ ansible_distribution_release }}_{{ (ansible_architecture == 'x86_64') | ternary('amd64', 'i386') }}.deb"
url: "{{ wkhtmltopdf_base_url }}/{{ wkhtmltopdf_version }}/wkhtmltox_{{ wkhtmltopdf_version }}-1.{{ __os_release }}_{{ (ansible_architecture == 'x86_64') | ternary('amd64', 'i386') }}.deb"
dest: "/tmp/wkhtmltopdf-{{ wkhtmltopdf_version }}-{{ ansible_distribution_release }}.deb"
register: wkhtmltopdf_archive

Expand Down
2 changes: 2 additions & 0 deletions vars/bullseye.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
os_release: buster
2 changes: 2 additions & 0 deletions vars/empty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
#

0 comments on commit 6e8b8d4

Please sign in to comment.