diff --git a/roles/nuancier/tasks/main.yml b/roles/nuancier/tasks/main.yml index a4a03171cf..2ec2c1445e 100644 --- a/roles/nuancier/tasks/main.yml +++ b/roles/nuancier/tasks/main.yml @@ -18,7 +18,7 @@ dest={{ item.location }}/{{ item.dest }} owner=apache group=apache mode=0600 with_items: - - { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier.cfg } + - { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier-lite.cfg } tags: - config notify: @@ -38,14 +38,14 @@ - setup - name: create the database scheme - command: NUANCIER_CONFIG=/etc/nuancier/nuancier.cfg /usr/share/nuancier/nuancier-lite_createdb.py + command: NUANCIER_CONFIG=/etc/nuancier/nuancier.cfg python /usr/share/nuancier/nuancier-lite_createdb.py - name: replace the nuancier configuration file by the one with the normal user template: src={{ item.file }} dest={{ item.location }}/{{ item.file }} owner=apache group=apache mode=0600 with_items: - - { file: nuancier.cfg, location: /etc/nuancier } + - { file: nuancier-lite.cfg, location: /etc/nuancier } - { file: nuancier.conf, location: /etc/httpd/conf.d } - { file: nuancier.wsgi, location: /usr/share/nuancier } tags: diff --git a/roles/nuancier/templates/nuancier.wsgi b/roles/nuancier/templates/nuancier.wsgi index cc57021a63..42fc285f39 100644 --- a/roles/nuancier/templates/nuancier.wsgi +++ b/roles/nuancier/templates/nuancier.wsgi @@ -9,7 +9,7 @@ import pkg_resources import os # Set the environment variable pointing to the configuration file -os.environ['NUANCIER_CONFIG'] = '/etc/nuancier/nuancier.cfg' +os.environ['NUANCIER_CONFIG'] = '/etc/nuancier/nuancier-lite.cfg' # The most import line to make the wsgi working from nuancier import APP as application