dépôts
/
lhc
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correction syntaxe
[lhc/ansible.git]
/
tasks
/
config_www.yml
diff --git
a/tasks/config_www.yml
b/tasks/config_www.yml
index
d01c9bf
..
c1a4b20
100644
(file)
--- a/
tasks/config_www.yml
+++ b/
tasks/config_www.yml
@@
-25,6
+25,8
@@
owner: "{{ item.owner }}"
group: "{{ item.group }}"
mode: "{{ item.mode }}"
owner: "{{ item.owner }}"
group: "{{ item.group }}"
mode: "{{ item.mode }}"
+ vars:
+ concat: "site_{{ SIGLE }}_{{ SITE }}"
loop_control:
label: "{{ item.path }}"
loop:
loop_control:
label: "{{ item.path }}"
loop:
@@
-40,6
+42,6
@@
mode: '2751'
- path: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}"
state: directory
mode: '2751'
- path: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}"
state: directory
- owner:
'root'
+ owner:
"{{ ( SITE in ['www','WP'] ) | ternary ( concat , 'root' ) }}"
group: "site_{{ SIGLE }}_{{ SITE }}"
mode: '2750'
group: "site_{{ SIGLE }}_{{ SITE }}"
mode: '2750'