Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wkhtmltopdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
wkhtmltopdf
Commits
5b371b93
Commit
5b371b93
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update wkhtmltox to version 0.12.5
parent
37a51174
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+2
-1
2 additions, 1 deletion
defaults/main.yml
tasks/install.yml
+30
-5
30 additions, 5 deletions
tasks/install.yml
with
32 additions
and
6 deletions
defaults/main.yml
+
2
−
1
View file @
5b371b93
wkhtmltopdf_version_full
:
"
0.12.4"
wkhtmltopdf_version_full
:
"
0.12.5"
wkhtmltopdf_version_tag
:
"
0.12.5-1"
wkhtmltopdf_architecture
:
"
amd64"
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
30
−
5
View file @
5b371b93
---
# file: roles/wkhtmltopdf/tasks/main.yml
-
name
:
"
Cleanup
old
version"
file
:
path
:
'
/usr/local/wkhtmltox'
state
:
absent
-
name
:
"
Ensure
dependencies
are
installed"
apt
:
name
:
'
{{
item
}}'
...
...
@@ -14,6 +19,7 @@
-
'
libxrender1'
-
'
xfonts-base'
-
'
xfonts-75dpi'
-
'
xvfb'
-
name
:
"
Ensure
libjpeg
dependencies
are
installed"
apt
:
...
...
@@ -31,8 +37,27 @@
-
'
libjpeg62-turbo'
when
:
ansible_distribution_release == 'jessie'
-
name
:
"
Download
wkhtmltopdf"
unarchive
:
src
:
'
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/{{
wkhtmltopdf_version_full
}}/wkhtmltox-{{
wkhtmltopdf_version_full
}}_linux-generic-{{
wkhtmltopdf_architecture
}}.tar.xz'
dest
:
'
/usr/local'
remote_src
:
yes
-
name
:
"
Check
current
version"
command
:
'
more
/etc/wkhtmltox-version'
register
:
wkhtmltox_current_version
ignore_errors
:
'
yes'
-
block
:
-
name
:
"
Download
Deb
Package"
get_url
:
url
:
'
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/{{
wkhtmltopdf_version_full
}}/wkhtmltox_{{
wkhtmltopdf_version_tag
}}.{{
ansible_distribution_release
}}_{{
wkhtmltopdf_architecture
}}.deb'
dest
:
'
/tmp/wkhtmltox.deb'
-
name
:
"
Install
Deb
Package"
command
:
'
dpkg
-i
/tmp/wkhtmltox.deb'
-
name
:
"
Remember
version"
copy
:
content
:
'
{{
wkhtmltopdf_version_tag
}}'
dest
:
'
/etc/wkhtmltox-version'
owner
:
'
root'
group
:
'
root'
mode
:
'
644'
when
:
wkhtmltopdf_version_tag not in wkhtmltox_current_version.stdout
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment