mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
9de8f51f19
commit
11757ddb86
1 changed files with 5 additions and 2 deletions
|
@ -40,10 +40,11 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
backup: no
|
backup: no
|
||||||
register: calibre_config
|
# register: calibre_config
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'}
|
- { 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: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
|
||||||
|
when: (not calib_executable.stat.exists)
|
||||||
|
|
||||||
- name: Copy template userdb to /library/calibre/users.sqlite
|
- name: Copy template userdb to /library/calibre/users.sqlite
|
||||||
copy:
|
copy:
|
||||||
|
@ -52,11 +53,13 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
when: (not calib_executable.stat.exists)
|
||||||
|
|
||||||
- name: Force systemd to reread configs
|
- name: Force systemd to reread configs
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: calibre_config.changed
|
when: (not calib_executable.stat.exists)
|
||||||
|
# when: calibre_config.changed
|
||||||
|
|
||||||
# 2. STOP CALIBRE SERVICE IF IT EXISTS (REQUIRED FOR DB ACTIVITY...AND IF not calibre_enabled)
|
# 2. STOP CALIBRE SERVICE IF IT EXISTS (REQUIRED FOR DB ACTIVITY...AND IF not calibre_enabled)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue