2016-10-13 06:19:56 +00:00
|
|
|
---
|
|
|
|
- name: download wkthmltox linux
|
2017-05-24 17:47:15 +00:00
|
|
|
get_url: url=http://downloads.wkhtmltopdf.org/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
|
2016-10-13 06:19:56 +00:00
|
|
|
|
|
|
|
- name: Creates directory
|
|
|
|
file: path=/tmp/wkhtmltox state=directory
|
|
|
|
|
|
|
|
- name: unarchive wkhtmltopdf
|
|
|
|
unarchive: src=/tmp/wkhtmltox.tar.xz dest=/tmp
|
|
|
|
|
|
|
|
- name: copy to /usr/local/bin
|
|
|
|
copy: src="/tmp/wkhtmltox/bin/wkhtmltopdf" dest="/usr/local/bin/wkhtmltopdf"
|
|
|
|
become: true
|
2016-10-13 07:38:12 +00:00
|
|
|
become_user: root
|
|
|
|
|
|
|
|
- name: make wkhtmltopdf executable
|
2016-10-13 07:43:43 +00:00
|
|
|
file: path=/usr/local/bin/wkhtmltopdf mode="o+x"
|
|
|
|
become: true
|
|
|
|
become_user: root
|