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
							
								
									439b3c6646
								
							
						
					
					
						commit
						89794fc642
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
- name: Create calibre-web folders to store data and configuration files
 | 
					- name: Create Calibre-Web folders to store data and configuration files
 | 
				
			||||||
  file:
 | 
					  file:
 | 
				
			||||||
    path: "{{ item }}"
 | 
					    path: "{{ item }}"
 | 
				
			||||||
    owner: "{{ calibreweb_user }}"
 | 
					    owner: "{{ calibreweb_user }}"
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@
 | 
				
			||||||
    - "{{ calibreweb_config }}"
 | 
					    - "{{ calibreweb_config }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## TODO: Calibre-web future release might get into pypi https://github.com/janeczku/calibre-web/issues/456
 | 
					## TODO: Calibre-web future release might get into pypi https://github.com/janeczku/calibre-web/issues/456
 | 
				
			||||||
- name: Download calibre-web github repository
 | 
					- name: Download Calibre-Web github repository
 | 
				
			||||||
  git:
 | 
					  git:
 | 
				
			||||||
    repo: https://github.com/janeczku/calibre-web.git
 | 
					    repo: https://github.com/janeczku/calibre-web.git
 | 
				
			||||||
    dest: "{{ calibreweb_venv_path }}"
 | 
					    dest: "{{ calibreweb_venv_path }}"
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@
 | 
				
			||||||
#  ignore_errors: True
 | 
					#  ignore_errors: True
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
# Implementing this with Ansible command module for now.
 | 
					# Implementing this with Ansible command module for now.
 | 
				
			||||||
- name: Download calibre-web dependencies into virtual environment
 | 
					- name: Download Calibre-Web dependencies into virtual environment
 | 
				
			||||||
  pip:
 | 
					  pip:
 | 
				
			||||||
    requirements: "{{ calibreweb_venv_path }}/requirements.txt"
 | 
					    requirements: "{{ calibreweb_venv_path }}/requirements.txt"
 | 
				
			||||||
    virtualenv: "{{ calibreweb_venv_path }}"
 | 
					    virtualenv: "{{ calibreweb_venv_path }}"
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,7 @@
 | 
				
			||||||
    src: "{{ calibreweb_venv_path }}/lib/python2.7/site-packages"
 | 
					    src: "{{ calibreweb_venv_path }}/lib/python2.7/site-packages"
 | 
				
			||||||
    dest: "{{ calibreweb_venv_path }}/vendor"
 | 
					    dest: "{{ calibreweb_venv_path }}/vendor"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Create calibre-web systemd service unit file and calibre-web.conf for Apache
 | 
					- name: Create Calibre-Web systemd service unit file and calibre-web.conf for Apache
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    src: "{{ item.src }}"
 | 
					    src: "{{ item.src }}"
 | 
				
			||||||
    dest: "{{ item.dest }}"
 | 
					    dest: "{{ item.dest }}"
 | 
				
			||||||
| 
						 | 
					@ -84,7 +84,7 @@
 | 
				
			||||||
  when: not metadatadb.stat.exists
 | 
					  when: not metadatadb.stat.exists
 | 
				
			||||||
  #when: calibreweb_provision
 | 
					  #when: calibreweb_provision
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Enable and restart calibre-web service
 | 
					- name: Enable and restart 'calibre-web' service
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: calibre-web
 | 
					    name: calibre-web
 | 
				
			||||||
    daemon_reload: yes
 | 
					    daemon_reload: yes
 | 
				
			||||||
| 
						 | 
					@ -101,7 +101,7 @@
 | 
				
			||||||
#  command: apachectl -k graceful
 | 
					#  command: apachectl -k graceful
 | 
				
			||||||
#  when: calibreweb_enabled
 | 
					#  when: calibreweb_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Disable calibre-web service
 | 
					- name: Disable 'calibre-web' service
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: calibre-web
 | 
					    name: calibre-web
 | 
				
			||||||
    daemon_reload: yes
 | 
					    daemon_reload: yes
 | 
				
			||||||
| 
						 | 
					@ -109,7 +109,7 @@
 | 
				
			||||||
    state: stopped
 | 
					    state: stopped
 | 
				
			||||||
  when: not calibreweb_enabled
 | 
					  when: not calibreweb_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Disable http://box/calibre-web with Apache
 | 
					- name: Disable http://box{{ calibreweb_url }} with Apache
 | 
				
			||||||
  command: a2dissite calibre-web.conf
 | 
					  command: a2dissite calibre-web.conf
 | 
				
			||||||
  when: not calibreweb_enabled
 | 
					  when: not calibreweb_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue