You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

109 lines
5.6 KiB

  1. ---
  2. - name: install base fonts
  3. yum:
  4. name:
  5. - libXrender
  6. - libXext
  7. - xorg-x11-fonts-75dpi
  8. - xorg-x11-fonts-Type1
  9. state: present
  10. when: ansible_os_family == 'RedHat'
  11. - name: install base fonts
  12. apt:
  13. pkg:
  14. - libxrender1
  15. - libxext6
  16. - xfonts-75dpi
  17. - xfonts-base
  18. state: present
  19. force: yes
  20. when: ansible_os_family == 'Debian'
  21. - name: download wkthmltox Ubuntu 20
  22. get_url:
  23. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb
  24. dest: /tmp/wkhtmltox.deb
  25. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture != 'aarch64'
  26. - name: download wkthmltox Ubuntu 20 arm64
  27. get_url:
  28. # wkhtmltox supports arm64 starting from 0.12.6
  29. url: https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_arm64.deb
  30. dest: /tmp/wkhtmltox.deb
  31. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '20' and ansible_architecture == 'aarch64'
  32. - name: download wkthmltox Ubuntu 18
  33. get_url:
  34. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  35. dest: /tmp/wkhtmltox.deb
  36. checksum: "sha256:{{ 'db48fa1a043309c4bfe8c8e0e38dc06c183f821599dd88d4e3cea47c5a5d4cd3' if ansible_architecture == 'x86_64' else '1f5ac84c1cb25e385b49b94a04807d60bf73da217bc6c9fe2cbd1f0a61d33f63' }}"
  37. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '18'
  38. - name: download wkthmltox Ubuntu 16
  39. get_url:
  40. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.xenial_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  41. dest: /tmp/wkhtmltox.deb
  42. checksum: "sha256:{{ 'df203cee4dc9b3efb8d0cd6fc25fa819883224f50c75b76bd9c856903711dc14' if ansible_architecture == 'x86_64' else '27b6edafee099b87b2911cc68b780e79cffed3948bb5a074e8ea1cf8820da156' }}"
  43. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '16'
  44. - name: download wkthmltox Ubuntu 14
  45. get_url:
  46. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  47. dest: /tmp/wkhtmltox.deb
  48. checksum: "sha256:{{ '2a3d1fe80da0dbc69da56cf90a3d0ec2786d1b919be29527630d609fea4a6b7c' if ansible_architecture == 'x86_64' else '582e02881e4bc6be9aaa634da1fe8c02d3233fb57f6daab9efa137edb812dd3b' }}"
  49. when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '14'
  50. - name: download wkthmltox CentOS 6
  51. get_url:
  52. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos6.{{ "x86_64" if ansible_architecture == "x86_64" else "i686"}}.rpm
  53. dest: /tmp/wkhtmltox.rpm
  54. checksum: "sha256:{{ '17bff4966143d240a126b6cc414c6f79aa2106c0c97c772228e84d685221c25f' if ansible_architecture == 'x86_64' else 'c60e75fef5bfa1e79983919ffb47b40dcfbb49d121a510f11ca4b2a2603c00f1' }}"
  55. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
  56. - name: download wkthmltox CentOS 7
  57. get_url:
  58. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.{{ "x86_64" if ansible_architecture == "x86_64" else "i686"}}.rpm
  59. dest: /tmp/wkhtmltox.rpm
  60. checksum: "sha256:{{ 'ac4f909b836fa1fc0188d19a1ab844910f91612e9ccefcb5298aa955a058ffe4' if ansible_architecture == 'x86_64' else '1030279ac4b5b15dda04de2587b2a1942bde1c78aa1837dfec4ddcbea426721f' }}"
  61. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  62. - name: download wkthmltox CentOS 8
  63. get_url:
  64. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm
  65. dest: /tmp/wkhtmltox.rpm
  66. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '8'
  67. - name: download wkthmltox Debian 8
  68. get_url:
  69. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.jessie_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  70. dest: /tmp/wkhtmltox.deb
  71. checksum: "sha256:{{ '2583399a865d7604726da166ee7cec656b87ae0a6016e6bce7571dcd3045f98b' if ansible_architecture == 'x86_64' else '3a6969f3ed207a805092e05794644eb9e152aaa6518e9204c819fa318947a8a8' }}"
  72. when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '8'
  73. - name: download wkthmltox Debian 9
  74. get_url:
  75. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  76. dest: /tmp/wkhtmltox.deb
  77. checksum: "sha256:{{ '1140b0ab02aa6e17346af2f14ed0de807376de475ba90e1db3975f112fbd20bb' if ansible_architecture == 'x86_64' else '5b2d15e738ac479e7a8ca6fd765f406c3684a48091813520f87878278d6dd22a' }}"
  78. when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '9'
  79. - name: download wkthmltox Debian 10
  80. get_url:
  81. url: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_{{ "amd64" if ansible_architecture == "x86_64" else "i386"}}.deb
  82. dest: /tmp/wkhtmltox.deb
  83. when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '10'
  84. - name: Install wkhtmltox rpm
  85. yum:
  86. name: /tmp/wkhtmltox.rpm
  87. state: present
  88. when: ansible_os_family == 'RedHat'
  89. - name: Install wkhtmltox deb
  90. apt:
  91. deb: /tmp/wkhtmltox.deb
  92. state: present
  93. when: ansible_os_family == 'Debian'
  94. ...