Skip to content

Commit 629b272

Browse files
authored
Merge pull request frappe#1077 from ceefour/patch-2
fix(playbooks): Support wkhtmltox arm64 architecture
2 parents 0367010 + 6ef6e37 commit 629b272

File tree

1 file changed

+8
-1
lines changed
  • bench/playbooks/roles/wkhtmltopdf/tasks

1 file changed

+8
-1
lines changed

bench/playbooks/roles/wkhtmltopdf/tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
get_url:
2525
url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb
2626
dest: /tmp/wkhtmltox.deb
27-
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20'
27+
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture != 'aarch64'
28+
29+
- name: download wkthmltox Ubuntu 20 arm64
30+
get_url:
31+
# wkhtmltox supports arm64 starting from 0.12.6
32+
url: https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_arm64.deb
33+
dest: /tmp/wkhtmltox.deb
34+
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture == 'aarch64'
2835

2936
- name: download wkthmltox Ubuntu 18
3037
get_url:

0 commit comments

Comments
 (0)