mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
add disable for redhat, add osm_enabled
This commit is contained in:
parent
0710ed2958
commit
939688d7de
1 changed files with 9 additions and 2 deletions
|
@ -79,6 +79,7 @@
|
|||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
when: osm_enabled
|
||||
|
||||
- name: Create a link from sites-enabled to sites-available
|
||||
file: src=/etc/apache2/sites-available/osm.conf
|
||||
|
@ -91,13 +92,18 @@
|
|||
state=absent
|
||||
when: not osm_enabled and is_debuntu
|
||||
|
||||
- name: Redhat - Remove the osm.conf
|
||||
file: dest=/{{ apache_config_dir }}/osm.conf
|
||||
state=absent
|
||||
when: not osm_enabled and is_redhat
|
||||
|
||||
- name: Create link to cgi
|
||||
file: src=/bin/iiab.wsgi
|
||||
dest={{ doc_root}}/osm.wsgi
|
||||
owner=root
|
||||
group=root
|
||||
state=link
|
||||
when: not is_debuntu
|
||||
when: not is_debuntu and osm_enabled
|
||||
|
||||
- name: Create link to cgi
|
||||
file: src=/usr/local/bin/iiab.wsgi
|
||||
|
@ -105,7 +111,7 @@
|
|||
owner=root
|
||||
group=root
|
||||
state=link
|
||||
when: is_debuntu
|
||||
when: is_debuntu and osm_enabled
|
||||
|
||||
- name: Restart httpd service
|
||||
service: name={{ apache_service }}
|
||||
|
@ -128,6 +134,7 @@
|
|||
- { src: 'l.control.geosearch.js', dest: "{{ osm_path }}/static/lib/leaflet/geosearch/l.control.geosearch.js" }
|
||||
# end of imported osm-fix
|
||||
- { src: '{{ osm_path }}/static/map.html', dest: "{{ osm_path }}/static/index.html" }
|
||||
when: osm_enabled
|
||||
|
||||
- name: add osm to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue