mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #1134 from holta/kiwix-ansible-syntax
Kiwix: Ansible syntax/comments modernized
This commit is contained in:
commit
d7200469f9
2 changed files with 16 additions and 13 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…
Add table
Add a link
Reference in a new issue