From 1120037afd5f09db3b181bc110f5e41722213468 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 20 Sep 2013 12:28:40 +0200 Subject: [PATCH] Fix syntax error and install wsgi and apache conf file only when needed --- roles/nuancier/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/nuancier/tasks/main.yml b/roles/nuancier/tasks/main.yml index 012d98e9c0..cee59e2ea7 100644 --- a/roles/nuancier/tasks/main.yml +++ b/roles/nuancier/tasks/main.yml @@ -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: