Ansible role to install wkhtmltopdf.
This repo was a fork of AerisCloud/ansible-wkhtmltopdf but, currently, it has diverged significantly from the original work.
Family | Distribution | Version | Test Status |
---|---|---|---|
Debian | Debian | Jessie | |
Debian | Debian | Wheezy | |
Debian | Ubuntu | Yakkety | |
Debian | Ubuntu | Xenial | |
Debian | Ubuntu | Wily | |
Debian | Ubuntu | Trusty | |
Debian | Ubuntu | Precise |
package
or source
).Variables used in the build
installation process.
i386
or amd64
).tarball
, git
).build.py
in order to build the software.build.py
in order to setup the chroot environment.wkhtmltopdf_installation=source
and wkhtmltopdf_build=git
This option is only available for versions 0.12.1 and 0.12.2 on:
- hosts: servers
vars:
wkhtmltopdf_installation: package
wkhtmltopdf_version: 0.12.1
roles:
- role: ansiblebit.wkhtmltopdf
You can build from source using a tarball
or git
.
For tarball
:
- hosts: servers
vars:
wkhtmltopdf_build: tarball
wkhtmltopdf_installation: source
roles:
- role: ansiblebit.wkhtmltopdf
For git
:
- hosts: servers
vars:
git_version: 2.11.0
wkhtmltopdf_build: git
wkhtmltopdf_installation: source
roles:
- role: ansiblebit.git
- role: ansiblebit.wkhtmltopdf
To run the tests you will need to install:
To run all tests against all pre-defined OS/distributions * ansible versions:
$ tox
To run tests for trusty64
:
$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log
To perform debugging on a specific environment:
$ cd tests
$ vagrant up trusty64.vagrant.dev
# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev
# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev