2016-03-16 09:54:19 +00:00
|
|
|
---
|
|
|
|
- name: Download wkhtmltopdf
|
|
|
|
get_url:
|
|
|
|
url=http://download.gna.org/wkhtmltopdf/0.12/{{ wkhtmltopdf_version }}/wkhtmltox-{{ wkhtmltopdf_version }}_linux-{{ ansible_distribution_release }}-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
|
|
|
|
dest="/tmp/"
|
2016-03-17 09:50:21 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-17 10:47:48 +00:00
|
|
|
when: ansible_distribution_release in ("jessie", "precise", "trusty", "wheezy")
|
2016-03-16 09:54:19 +00:00
|
|
|
|
|
|
|
- name: Install wkhtmltopdf deb
|
|
|
|
apt: deb=/tmp/wkhtmltox-{{ wkhtmltopdf_version }}_linux-{{ ansible_distribution_release }}-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
|
2016-03-17 09:50:21 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-17 10:47:48 +00:00
|
|
|
when: ansible_distribution_release in ("jessie", "precise", "trusty", "wheezy")
|
|
|
|
|
|
|
|
- name: Download wkhtmltopdf for Ubuntu Wily
|
|
|
|
get_url:
|
|
|
|
url=http://download.gna.org/wkhtmltopdf/0.12/{{ wkhtmltopdf_version }}/wkhtmltox-{{ wkhtmltopdf_version }}_linux-trusty-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
|
|
|
|
dest="/tmp/"
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
when: ansible_distribution_release=="wily"
|
|
|
|
|
|
|
|
- name: Install wkhtmltopdf deb for Ubuntu Wily
|
|
|
|
apt: deb=/tmp/wkhtmltox-{{ wkhtmltopdf_version }}_linux-trusty-{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
when: ansible_distribution_release=="wily"
|