1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

OS messaging consistent w/ other playbooks

This commit is contained in:
A Holt 2017-12-06 11:37:38 -05:00 committed by GitHub
parent d5e667bb5e
commit 121f5d409d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,13 +71,13 @@
osm_path: "{{ osm_venv }}/lib/python2.7/site-packages/iiab" osm_path: "{{ osm_venv }}/lib/python2.7/site-packages/iiab"
when: osm_enabled and is_debuntu when: osm_enabled and is_debuntu
- name: All - Point wsgi to virtual environment - name: Point wsgi to virtual environment (all OS's)
lineinfile: dest={{ osm_venv }}/bin/iiab.wsgi lineinfile: dest={{ osm_venv }}/bin/iiab.wsgi
regexp="path_to_virtualenv = None" regexp="path_to_virtualenv = None"
line="path_to_virtualenv = '/usr/local/osm'" line="path_to_virtualenv = '/usr/local/osm'"
state=present state=present
- name: All - Copy OSM config file - name: Copy OSM config file (all OS's)
template: backup=no template: backup=no
src=osm.conf.j2 src=osm.conf.j2
dest=/etc/{{ apache_config_dir }}/osm.conf dest=/etc/{{ apache_config_dir }}/osm.conf
@ -86,28 +86,28 @@
mode=0644 mode=0644
when: osm_enabled when: osm_enabled
- name: Debuntu - Create a link from sites-enabled to sites-available - name: Create a link from sites-enabled to sites-available (debuntu)
file: src=/etc/{{ apache_config_dir }}/osm.conf file: src=/etc/{{ apache_config_dir }}/osm.conf
dest=/etc/apache2/sites-enabled/osm.conf dest=/etc/apache2/sites-enabled/osm.conf
state=link state=link
when: osm_enabled and is_debuntu when: osm_enabled and is_debuntu
- name: Debuntu - Remove the link from sites-enabled to sites-available - name: Remove the link from sites-enabled to sites-available (debuntu)
file: dest=/etc/apache2/sites-enabled/osm.conf file: dest=/etc/apache2/sites-enabled/osm.conf
state=absent state=absent
when: not osm_enabled and is_debuntu when: not osm_enabled and is_debuntu
- name: Redhat - Remove the osm.conf - name: Remove the osm.conf (redhat)
file: dest=/{{ apache_config_dir }}/osm.conf file: dest=/{{ apache_config_dir }}/osm.conf
state=absent state=absent
when: not osm_enabled and is_redhat when: not osm_enabled and is_redhat
- name: All - Remove link to cgi - name: Remove link to cgi (all OS's)
file: dest={{ doc_root }}/osm.wsgi file: dest={{ doc_root }}/osm.wsgi
state=absent state=absent
when: not osm_enabled when: not osm_enabled
- name: All - Create link to cgi - name: Create link to cgi (all OS's)
file: src={{ osm_venv }}/bin/iiab.wsgi file: src={{ osm_venv }}/bin/iiab.wsgi
dest={{ doc_root }}/osm.wsgi dest={{ doc_root }}/osm.wsgi
owner=root owner=root