|
|
|
@ -26,12 +26,19 @@ |
|
|
|
|
template: src=env.j2 dest={{ bookstack_root_dir }}/app/.env group={{ bookstack_php_user }} mode=640 |
|
|
|
|
tags: bookstack |
|
|
|
|
|
|
|
|
|
- name: Migrate the database |
|
|
|
|
shell: echo yes | /bin/php{{ bookstack_php_version }} artisan migrate |
|
|
|
|
args: |
|
|
|
|
chdir: "{{ bookstack_root_dir }}/app" |
|
|
|
|
- when: bookstack_install_mode != 'none' |
|
|
|
|
block: |
|
|
|
|
- name: Migrate the database |
|
|
|
|
shell: echo yes | /bin/php{{ bookstack_php_version }} {{ bookstack_root_dir }}/app/artisan migrate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Clear cache |
|
|
|
|
command: /bin/php{{ bookstack_php_version }} {{ bookstack_root_dir }}/app/artisan cache:clear |
|
|
|
|
|
|
|
|
|
- name: Clear views |
|
|
|
|
command: /bin/php{{ bookstack_php_version }} {{ bookstack_root_dir }}/app/artisan view:clear |
|
|
|
|
|
|
|
|
|
become_user: "{{ bookstack_php_user }}" |
|
|
|
|
when: bookstack_install_mode != 'none' |
|
|
|
|
tags: bookstack |
|
|
|
|
|
|
|
|
|
- name: Deploy permission script |
|
|
|
|