From 9b19d93bf93078c63235d74cbcdaf836726c9b8a Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 8 Oct 2018 20:28:06 +0200 Subject: [PATCH] hackmd: update version to codimd 1.2.1 --- roles/hackmd/defaults/main.yml | 2 +- roles/hackmd/tasks/main.yml | 8 ++++---- roles/hackmd/templates/hackmd.service.j2 | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/hackmd/defaults/main.yml b/roles/hackmd/defaults/main.yml index 90665de..ad14e87 100644 --- a/roles/hackmd/defaults/main.yml +++ b/roles/hackmd/defaults/main.yml @@ -1,3 +1,3 @@ --- -hackmd_version: 1.1.1-ce +hackmd_version: 1.2.1 diff --git a/roles/hackmd/tasks/main.yml b/roles/hackmd/tasks/main.yml index 7432141..6a339c7 100644 --- a/roles/hackmd/tasks/main.yml +++ b/roles/hackmd/tasks/main.yml @@ -22,21 +22,21 @@ - python-psycopg2 - name: Unpack hackmd - unarchive: src=https://github.com/hackmdio/hackmd/archive/{{hackmd_version}}.tar.gz dest=/opt owner=hackmd remote_src=yes creates=/opt/hackmd-{{hackmd_version}} + unarchive: src=https://github.com/hackmdio/codimd/archive/{{ hackmd_version }}.tar.gz dest=/opt owner=hackmd remote_src=yes creates=/opt/codimd-{{ hackmd_version }} register: hackmd_unarchive - name: Setup hackmd - command: bin/setup chdir=/opt/hackmd-{{hackmd_version}} creates=/opt/hackmd-{{hackmd_version}}/config.json + command: bin/setup chdir=/opt/codimd-{{ hackmd_version }} creates=/opt/codimd-{{ hackmd_version }}/config.json become: true become_user: hackmd - name: Configure hackmd - template: src=config.json.j2 dest=/opt/hackmd-{{hackmd_version}}/config.json owner=hackmd + template: src=config.json.j2 dest=/opt/codimd-{{ hackmd_version }}/config.json owner=hackmd register: hackmd_config notify: Restart hackmd - name: Build hackmd frontend - command: /usr/bin/npm run build chdir=/opt/hackmd-{{hackmd_version}} + command: /usr/bin/npm run build chdir=/opt/codimd-{{ hackmd_version }} become: true become_user: hackmd when: (hackmd_unarchive is defined and hackmd_unarchive.changed) or (hackmd_config is defined and hackmd_config.changed) diff --git a/roles/hackmd/templates/hackmd.service.j2 b/roles/hackmd/templates/hackmd.service.j2 index 16d4d0c..3cb89a6 100644 --- a/roles/hackmd/templates/hackmd.service.j2 +++ b/roles/hackmd/templates/hackmd.service.j2 @@ -4,10 +4,10 @@ After=network.target [Service] Environment=NODE_ENV=production -WorkingDirectory=/opt/hackmd-{{hackmd_version}} +WorkingDirectory=/opt/codimd-{{ hackmd_version }} Type=simple User=hackmd -ExecStart=/usr/bin/node /opt/hackmd-{{hackmd_version}}/app.js +ExecStart=/usr/bin/node /opt/codimd-{{ hackmd_version }}/app.js Restart=on-failure [Install]