1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
This commit is contained in:
George Hunt 2017-09-14 20:35:28 -07:00
commit 4e520c3ad7
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,3 @@
calibre_port: 8010
calibre_port: 8080
calibre_dbpath: "/library/calibre"
calibre_src_url: "https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py"

View file

@ -1,4 +1,4 @@
- name: Get calibre setup file
- name: Get Calibre setup file
# the installer works for intel fedora, and Centos, and deals with dependencies
get_url:
url="{{ calibre_src_url }}"
@ -6,13 +6,13 @@
mode=0755
when: ansible_distribution == "CentOS"
- name: Install calibre
- name: Install Calibre
shell: "{{ downloads_dir }}/calibre-installer.py >> /dev/null"
args:
creates: /usr/bin/calibre-uninstall
when: calibre_install and ansible_distribution == 'CentOS'
- name: Install Caibre rpms
- name: Install Calibre rpms
# the fedora rpm arm version, though older, takes care of dependencies, and exists
package: name={{ item }}
state=present
@ -20,7 +20,7 @@
- calibre
when: calibre_install and ansible_distribution != 'CentOS'
- name: Create calibre service(s) and support scripts
- name: Create Calibre service(s) and support scripts
template: backup=no
src={{ item.src }}
dest={{ item.dest }}
@ -52,7 +52,7 @@
state=stopped
when: not calibre_enabled
- name: Add calibre to service list
- name: Add Calibre to service list
ini_file: dest='{{ service_filelist }}'
section=calibre
option='{{ item.option }}'