mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Ansible's template module won't copy binary files
This commit is contained in:
parent
612c552168
commit
9de8f51f19
1 changed files with 9 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
# - run testing branch for Ubuntu 16.04: scripts/calibre-install-latest.sh
|
||||
# - run unstable branch for Debian etc: scripts/calibre-install-unstable.sh
|
||||
|
||||
- name: Create calibre-serve.service, calibre.conf, users.sqlite
|
||||
- name: Create calibre-serve.service and calibre.conf
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -44,7 +44,14 @@
|
|||
with_items:
|
||||
- { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'}
|
||||
- { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
|
||||
- { src: 'users.sqlite', dest: '{{ calibre_userdb }}', mode: '0644'}
|
||||
|
||||
- name: Copy template userdb to /library/calibre/users.sqlite
|
||||
copy:
|
||||
src: /opt/iiab/iiab/roles/calibre/templates/users.sqlite
|
||||
dest: "{{ calibre_userdb }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Force systemd to reread configs
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue