Fix syntax error and install wsgi and apache conf file only when needed

This commit is contained in:
Pierre-Yves Chibon 2013-09-20 12:28:40 +02:00
parent 2115866868
commit 1120037afd

View file

@ -13,9 +13,7 @@
src={{ item.file }} 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.conf, location: /etc/httpd/conf.d, dest: nuancier.conf }
- { file: nuancier.wsgi, location: /usr/share/nuancier, dest: nuancier.wsgi }
- { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier.cfg }
tags:
- config
notify:
@ -37,10 +35,12 @@
- name: replace the nuancier configuration file by the one with the normal user
template: >
src={{ item.file }} dest={{ item.location }}/{{ item.dest }}
src={{ item.file }} dest={{ item.location }}/{{ item.file }}
owner=apache group=apache mode=0600
with_items:
- { file: nuancier.cfg, location: /etc/nuancier, dest:nuancier.cfg }
- { file: nuancier.cfg, location: /etc/nuancier }
- { file: nuancier.conf, location: /etc/httpd/conf.d }
- { file: nuancier.wsgi, location: /usr/share/nuancier }
tags:
- config
notify: