forked from infra/ansible
hackmd: fix when
This commit is contained in:
parent
4a93fab603
commit
32f976a163
@ -39,7 +39,7 @@
|
|||||||
command: /usr/bin/npm run build chdir=/opt/codimd-{{ hackmd_version }}
|
command: /usr/bin/npm run build chdir=/opt/codimd-{{ hackmd_version }}
|
||||||
become: true
|
become: true
|
||||||
become_user: hackmd
|
become_user: hackmd
|
||||||
when: (hackmd_unarchive is defined and hackmd_unarchive.changed) or (hackmd_config is defined and hackmd_config.changed)
|
when: hackmd_unarchive.changed or hackmd_config.changed
|
||||||
|
|
||||||
- name: Configure PostgreSQL database
|
- name: Configure PostgreSQL database
|
||||||
postgresql_db: name={{ hackmd_dbname }}
|
postgresql_db: name={{ hackmd_dbname }}
|
||||||
@ -58,6 +58,7 @@
|
|||||||
command: node_modules/.bin/sequelize db:migrate chdir=/opt/codimd-{{ hackmd_version }}
|
command: node_modules/.bin/sequelize db:migrate chdir=/opt/codimd-{{ hackmd_version }}
|
||||||
become: true
|
become: true
|
||||||
become_user: hackmd
|
become_user: hackmd
|
||||||
|
when: hackmd_unarchive.changed or hackmd_config.changed
|
||||||
|
|
||||||
- name: Ensure certificates are available
|
- name: Ensure certificates are available
|
||||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ hackmd_domain }}.key -out /etc/nginx/ssl/{{ hackmd_domain }}.crt -days 730 -subj "/CN={{ hackmd_domain }}" creates=/etc/nginx/ssl/{{ hackmd_domain }}.crt
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ hackmd_domain }}.key -out /etc/nginx/ssl/{{ hackmd_domain }}.crt -days 730 -subj "/CN={{ hackmd_domain }}" creates=/etc/nginx/ssl/{{ hackmd_domain }}.crt
|
||||||
|
Loading…
Reference in New Issue
Block a user