1
0
Fork 0
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:
A Holt 2018-07-07 15:49:46 -04:00 committed by GitHub
parent 612c552168
commit 9de8f51f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: