Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Ansible Debian role to install wkhtmltopdf
Due to errors for [ERPNext](https://www.erpnext.org/) with the Debian packaged version of wkhtmltopdf, this role will install from the [wkhtmltopdf site](https://wkhtmltopdf.org/).
The variables in the `defaults/main.yml` file for this role might need updateding using values from the [wkhtmltopdf downloads page](https://wkhtmltopdf.org/downloads.html):
```yml
wkhtmltopdf_deb: wkhtmltox_0.12.5-1.stretch_amd64.deb
wkhtmltopdf_checksums: https://downloads.wkhtmltopdf.org/0.12/0.12.5/SHA256SUMS
wkhtmltopdf_deb_url: https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
```
To use this role you need to use Ansible Galaxy to install it into another repository under `galaxy/roles/wpcli` by adding a `requirements.yml` file in that repo that contains:
```yml
- name: wkhtmltopdf
src: https://git.coop/webarch/wkhtmltopdf.git
version: master
scm: git
```
And a `ansible.cfg` that contains:
```
[defaults]
retry_files_enabled = False
pipelining = True
inventory = hosts.yml
roles_path = galaxy/roles
```
And a `.gitignore` containing:
```
roles/galaxy
```
To pull this repo in run:
```bash
ansible-galaxy install -r requirements.yml --force
```