hackmd: only rebuild if changed (properly this time)

This commit is contained in:
Markus 2018-09-20 22:57:51 +02:00
parent 53da0d7ac3
commit d434e9e70d
1 changed files with 2 additions and 2 deletions

View File

@ -32,14 +32,14 @@
- name: Configure hackmd
template: src=config.json.j2 dest=/opt/hackmd-{{hackmd_version}}/config.json owner=hackmd
notify: Restart hackmd
register: hackmd_config
notify: Restart hackmd
- name: Build hackmd frontend
command: /usr/bin/npm run build chdir=/opt/hackmd-{{hackmd_version}}
become: true
become_user: hackmd
when: hackmd_unarchive.changed or hackmd_config.changed
when: (hackmd_unarchive is defined and hackmd_unarchive.changed) or (hackmd_config is defined and hackmd_config.changed)
- name: Configure PostgreSQL database
postgresql_db: name={{ hackmd_dbname }}