hackmd: only rebuild if changed (properly this time)
This commit is contained in:
parent
53da0d7ac3
commit
d434e9e70d
@ -32,14 +32,14 @@
|
|||||||
|
|
||||||
- name: Configure 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/hackmd-{{hackmd_version}}/config.json owner=hackmd
|
||||||
notify: Restart hackmd
|
|
||||||
register: hackmd_config
|
register: hackmd_config
|
||||||
|
notify: Restart hackmd
|
||||||
|
|
||||||
- name: Build hackmd frontend
|
- name: Build hackmd frontend
|
||||||
command: /usr/bin/npm run build chdir=/opt/hackmd-{{hackmd_version}}
|
command: /usr/bin/npm run build chdir=/opt/hackmd-{{hackmd_version}}
|
||||||
become: true
|
become: true
|
||||||
become_user: hackmd
|
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
|
- name: Configure PostgreSQL database
|
||||||
postgresql_db: name={{ hackmd_dbname }}
|
postgresql_db: name={{ hackmd_dbname }}
|
||||||
|
Loading…
Reference in New Issue
Block a user