1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Handle metadata.db creation with copy instead of template

This commit is contained in:
Arky 2018-08-14 11:45:20 +07:00
parent f9548e30d6
commit 8047a83a37
2 changed files with 5 additions and 6 deletions

View file

@ -35,14 +35,13 @@
- { src: 'calibre-web.conf.j2', dest: '/etc/apache2/sites-available/calibre-web.conf', mode: '0644' }
- name: Provision calibre-web with default administration account and database.
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
copy:
src: roles/calibre-web/files/metadata.db
dest: "{{ calibre-web_home }}"
owner: "{{ calibre_web_user }}"
group: "{{ apache_user }}"
with_items:
- { src: 'metadata.db', dest: '{{ calibre_web_home }}/metadata.db', mode: '0644' }
mode: 0644
backup: yes
when: calibre_web_provision
- name: Ask systemd to reread unit files (daemon-reload).