mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Update kiwix_install.yml
This commit is contained in:
parent
343250d7de
commit
42c4b9d43f
1 changed files with 10 additions and 7 deletions
|
@ -83,7 +83,7 @@
|
||||||
- rewrite
|
- rewrite
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
# 4. CREATE/ENABLE/DISABLE KIWIX SERVICE & ITS CRON JOB
|
# 4. CREATE/ENABLE/RESTART (OR DISABLE) KIWIX SERVICE & ITS CRON JOB
|
||||||
|
|
||||||
- name: Create 'kiwix-serve' service and related files
|
- name: Create 'kiwix-serve' service and related files
|
||||||
template:
|
template:
|
||||||
|
@ -101,10 +101,11 @@
|
||||||
# - { src: 'iiab-make-apache-config.py', dest: '/usr/bin/iiab-make-apache-config.py', mode: '0755'}
|
# - { src: 'iiab-make-apache-config.py', dest: '/usr/bin/iiab-make-apache-config.py', mode: '0755'}
|
||||||
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
|
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
|
||||||
|
|
||||||
- name: Enable Kiwix Proxy in Apache - is disabled by turning off kiwix service
|
- name: Enable Kiwix Proxy in Apache - is disabled by turning off kiwix service (debuntu)
|
||||||
file: path=/etc/apache2/sites-enabled/kiwix.conf
|
file:
|
||||||
src=/etc/apache2/sites-available/kiwix.conf
|
src: /etc/apache2/sites-available/kiwix.conf
|
||||||
state=link
|
path: /etc/apache2/sites-enabled/kiwix.conf
|
||||||
|
state: link
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Enable 'kiwix-serve' service
|
- name: Enable 'kiwix-serve' service
|
||||||
|
@ -141,8 +142,10 @@
|
||||||
dest: /etc/crontab
|
dest: /etc/crontab
|
||||||
when: kiwix_enabled and is_redhat
|
when: kiwix_enabled and is_redhat
|
||||||
|
|
||||||
- name: Restart apache, so it picks up kiwix.conf
|
- name: Restart Apache, so it picks up kiwix.conf
|
||||||
service: name={{ apache_service }} state=restarted
|
service:
|
||||||
|
name: "{{ apache_service }}"
|
||||||
|
state: restarted
|
||||||
|
|
||||||
# 5. FINALIZE
|
# 5. FINALIZE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue