mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Install prebuilt Redis and cmark-gfm from APT
Install prebuilt Redis and cmark-gfm from APT
See merge request tildes-community/tildes-cf!9develop
committed by
Andrew Shu
5 changed files with 52 additions and 78 deletions
-
59ansible/roles/cmark-gfm/tasks/main.yml
-
4ansible/roles/java/tasks/main.yml
-
2ansible/roles/redis/defaults/main.yml
-
3ansible/roles/redis/files/redis.service
-
62ansible/roles/redis/tasks/main.yml
@ -1,40 +1,25 @@ |
|||
--- |
|||
- name: Check if cmark-gfm is installed |
|||
stat: |
|||
path: /usr/local/lib/libcmark-gfm.so |
|||
register: cmark_gfm_library |
|||
|
|||
- name: Download and install cmark-gfm |
|||
when: not cmark_gfm_library.stat.exists |
|||
block: |
|||
- name: Download cmark-gfm from GitHub |
|||
get_url: |
|||
dest: /tmp/cmark-gfm.tar.gz |
|||
url: https://github.com/github/cmark-gfm/archive/0.29.0.gfm.0.tar.gz |
|||
checksum: sha256:6a94aeaa59a583fadcbf28de81dea8641b3f56d935dda5b2447a3c8df6c95fea |
|||
|
|||
- name: Create temp directory to extract cmark-gfm to |
|||
file: |
|||
path: /tmp/cmark-gfm |
|||
state: directory |
|||
- name: Install cmark-gfm |
|||
apt: |
|||
name: |
|||
- cmark-gfm |
|||
- libcmark-gfm-dev |
|||
- libcmark-gfm-extensions-dev |
|||
|
|||
- name: Extract cmark-gfm |
|||
unarchive: |
|||
remote_src: true |
|||
src: /tmp/cmark-gfm.tar.gz |
|||
dest: /tmp/cmark-gfm |
|||
extra_opts: |
|||
- --strip-components=1 |
|||
|
|||
- name: Install build dependencies for cmark-gfm |
|||
apt: |
|||
name: |
|||
- build-essential |
|||
- cmake |
|||
- name: Symlink cmark-gfm library to stable location |
|||
file: |
|||
path: /usr/local/lib/libcmark-gfm.so |
|||
src: /usr/lib/{{ ansible_facts['architecture'] }}-linux-gnu/libcmark-gfm.so |
|||
state: link |
|||
owner: root |
|||
group: root |
|||
mode: 0644 |
|||
|
|||
- name: Install cmark-gfm |
|||
shell: |
|||
chdir: /tmp/cmark-gfm |
|||
cmd: | |
|||
make |
|||
make install |
|||
- name: Symlink cmark-gfm-extensions library to stable location |
|||
file: |
|||
path: /usr/local/lib/libcmark-gfm-extensions.so |
|||
src: /usr/lib/{{ ansible_facts['architecture'] }}-linux-gnu/libcmark-gfm-extensions.so |
|||
state: link |
|||
owner: root |
|||
group: root |
|||
mode: 0644 |
@ -1,4 +1,4 @@ |
|||
--- |
|||
- name: Install OpenJDK Java runtime |
|||
- name: Install OpenJDK Java runtime (for html5validator) |
|||
apt: |
|||
name: openjdk-17-jre |
|||
name: openjdk-17-jre-headless |
@ -1,2 +1,2 @@ |
|||
--- |
|||
redis_version: 6.2.4 |
|||
redis_version: 6:6.2.17-1rl1~bookworm1 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue