hackmd: update and fix uploads folder link creation

This commit is contained in:
Markus 2019-09-06 16:17:34 +02:00
parent 4c7d472f2f
commit c763264ccd
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
---
hackmd_version: 1.2.1
hackmd_version: 1.3.1

View File

@ -28,8 +28,11 @@
- name: Create hackmd upload path
file: path=/opt/codimd/uploads state=directory recurse=yes owner=hackmd group=hackmd
- name: Remove old hackmd upload path
file: path=/opt/codimd-{{ hackmd_version }}/public/uploads state=absent force=yes
- name: Link hackmd upload path
file: path=/opt/codimd/uploads dest=/opt/codimd-{{ hackmd_version }}/public/uploads state=link owner=hackmd group=hackmd
file: path=/opt/codimd-{{ hackmd_version }}/public/uploads src=/opt/codimd/uploads state=link owner=hackmd group=hackmd
- name: Setup hackmd
command: bin/setup chdir=/opt/codimd-{{ hackmd_version }} creates=/opt/codimd-{{ hackmd_version }}/config.json