mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
Fix syntax error and install wsgi and apache conf file only when needed
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user