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
							
								
									617561e257
								
							
						
					
					
						commit
						9dc04dc925
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
- name: Create Calibre-Web folders to store data and configuration files
 | 
					- name: Create 3 Calibre-Web folders to store data and configuration files
 | 
				
			||||||
  file:
 | 
					  file:
 | 
				
			||||||
    path: "{{ item }}"
 | 
					    path: "{{ item }}"
 | 
				
			||||||
    owner: "{{ calibreweb_user }}"
 | 
					    owner: "{{ calibreweb_user }}"
 | 
				
			||||||
| 
						 | 
					@ -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' systemd 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' systemd service
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: calibre-web
 | 
					    name: calibre-web
 | 
				
			||||||
    daemon_reload: yes
 | 
					    daemon_reload: yes
 | 
				
			||||||
| 
						 | 
					@ -117,14 +117,14 @@
 | 
				
			||||||
#  command: apachectl -k graceful
 | 
					#  command: apachectl -k graceful
 | 
				
			||||||
#  when: not calibreweb_enabled
 | 
					#  when: not calibreweb_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Restart Apache
 | 
					- name: Restart Apache service {{ apache_service }}
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: "{{ apache_service }}"    # httpd or apache2
 | 
					    name: "{{ apache_service }}"    # httpd or apache2
 | 
				
			||||||
    state: restarted
 | 
					    state: restarted
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'calibre-web' to list of services at {{ iiab_ini_file }}
 | 
					- name: Add 'calibre-web' variable values to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    dest: "{{ iiab_ini_file }}"
 | 
					    path: "{{ iiab_ini_file }}"
 | 
				
			||||||
    section: calibre-web
 | 
					    section: calibre-web
 | 
				
			||||||
    option: "{{ item.option }}"
 | 
					    option: "{{ item.option }}"
 | 
				
			||||||
    value: "{{ item.value }}"
 | 
					    value: "{{ item.value }}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue