Skip to content

Commit

Permalink
fix(playbooks): Support wkhtmltox arm64 architecture
Browse files Browse the repository at this point in the history
For Ubuntu 20.04 LTS and later
  • Loading branch information
ceefour committed Oct 30, 2020
1 parent 0367010 commit d6d1b91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bench/playbooks/roles/wkhtmltopdf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@
force: yes
when: ansible_os_family == 'Debian'

- name: download wkthmltox Ubuntu 20
- name: download wkthmltox Ubuntu 20 amd64
get_url:
url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb
dest: /tmp/wkhtmltox.deb
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture == 'x86_64'
- name: download wkthmltox Ubuntu 20 arm64
get_url:
# wkhtmltox supports arm64 starting from 0.12.6
url: https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_arm64.deb
dest: /tmp/wkhtmltox.deb
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture == 'aarch64'

- name: download wkthmltox Ubuntu 18
get_url:
Expand Down

0 comments on commit d6d1b91

Please sign in to comment.