mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	OMerge branch 'master' of https://github.com/iiab/iiab
This commit is contained in:
		
						commit
						4e520c3ad7
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 }}'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue