2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-25 16:08:23 +00:00
Rushabh Mehta 517a229565 [update] wkhtmltopdf 0.12.3 (#329)
* [update] wkhtmltopdf 0.12.3

* [minor] fix path

* [fix] make folder before move

* [path] try file copy

* [path] try file copy

* [copy] use sudo

* [copy] become root
2016-10-13 11:49:56 +05:30

27 lines
845 B
YAML

---
- name: install base fonts
yum: name={{ item }} state=present
with_items:
- libXrender
- libXext
- xorg-x11-fonts-75dpi
- xorg-x11-fonts-Type1
when: ansible_os_family == 'RedHat'
- name: install base fonts
apt: name={{ item }} state=present
with_items:
- libxrender1
- libxext6
- xfonts-75dpi
- xfonts-base
when: ansible_os_family == 'Debian'
- name: download wkthmltox linux
get_url: url=http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.tar.xz dest=/tmp/wkhtmltox.tar.xz
- name: unarchive wkhtmltopdf
unarchive: src=/tmp/wkhtmltox.tar.xz dest=/tmp/wkhtmltox
- name: move to /usr/local/bin
command: creates="/usr/local/bin/wkhtmltopdf" mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf