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.

40 lines
1.0 KiB

  1. ---
  2. - name: Check if cmark-gfm is installed
  3. stat:
  4. path: /usr/local/lib/libcmark-gfm.so
  5. register: cmark_gfm_library
  6. - name: Download and install cmark-gfm
  7. when: not cmark_gfm_library.stat.exists
  8. block:
  9. - name: Download cmark-gfm from GitHub
  10. get_url:
  11. dest: /tmp/cmark-gfm.tar.gz
  12. url: https://github.com/github/cmark-gfm/archive/0.29.0.gfm.0.tar.gz
  13. checksum: sha256:6a94aeaa59a583fadcbf28de81dea8641b3f56d935dda5b2447a3c8df6c95fea
  14. - name: Create temp directory to extract cmark-gfm to
  15. file:
  16. path: /tmp/cmark-gfm
  17. state: directory
  18. - name: Extract cmark-gfm
  19. unarchive:
  20. remote_src: true
  21. src: /tmp/cmark-gfm.tar.gz
  22. dest: /tmp/cmark-gfm
  23. extra_opts:
  24. - --strip-components=1
  25. - name: Install build dependencies for cmark-gfm
  26. apt:
  27. name:
  28. - build-essential
  29. - cmake
  30. - name: Install cmark-gfm
  31. shell:
  32. chdir: /tmp/cmark-gfm
  33. cmd: |
  34. make
  35. make install