Structure des projets
This commit is contained in:
parent
b419e9acf6
commit
c4bc6b8b3c
@ -20,19 +20,19 @@
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/clients"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/datafile"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/datafile"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/sources"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
@ -15,19 +15,19 @@
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/clients"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/datafile"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/datafile"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/sources"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
@ -15,5 +15,5 @@
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: st.stat.islnk is not defined or st.stat.islnk == False
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
19
apps/enrichissement/tasks/before-setup.yml
Normal file
19
apps/enrichissement/tasks/before-setup.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: CRONY | Project directory
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory
|
||||
|
||||
- name: CRONY | Project releases directory
|
||||
file: path="{{ansistrano_deploy_to}}/releases" state=directory
|
||||
|
||||
- name: CRONY | Project shared directories
|
||||
file: path="{{ansistrano_deploy_to}}/shared/{{item.src}}" state=directory recurse=yes
|
||||
with_items:
|
||||
- { src: 'log' }
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/sources"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
19
apps/extranet/tasks/before-setup.yml
Normal file
19
apps/extranet/tasks/before-setup.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: CRONY | Project directory
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory
|
||||
|
||||
- name: CRONY | Project releases directory
|
||||
file: path="{{ansistrano_deploy_to}}/releases" state=directory
|
||||
|
||||
- name: CRONY | Project shared directories
|
||||
file: path="{{ansistrano_deploy_to}}/shared/{{item.src}}" state=directory recurse=yes
|
||||
with_items:
|
||||
- { src: 'log' }
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/sources"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ansistrano_git_branch: master
|
||||
#ansistrano_git_identity_key_path: ""
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.yml"
|
||||
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
||||
#ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
||||
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
||||
|
10
apps/flux/tasks/before-setup.yml
Normal file
10
apps/flux/tasks/before-setup.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: FLUX | Project directory
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory
|
||||
|
||||
- name: FLUX | Project releases directory
|
||||
file: path="{{ansistrano_deploy_to}}/releases" state=directory
|
||||
|
||||
- name: FLUX | Project shared directories
|
||||
file: path="{{ansistrano_deploy_to}}/shared" state=directory
|
||||
|
19
apps/odea/tasks/before-setup.yml
Normal file
19
apps/odea/tasks/before-setup.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: CRONY | Project directory
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory
|
||||
|
||||
- name: CRONY | Project releases directory
|
||||
file: path="{{ansistrano_deploy_to}}/releases" state=directory
|
||||
|
||||
- name: CRONY | Project shared directories
|
||||
file: path="{{ansistrano_deploy_to}}/shared/{{item.src}}" state=directory recurse=yes
|
||||
with_items:
|
||||
- { src: 'log' }
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/sources"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/sources"
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
@ -24,7 +24,7 @@
|
||||
#ansistrano_git_branch: master
|
||||
#ansistrano_git_identity_key_path: ""
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.yml"
|
||||
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
||||
ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
||||
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
||||
|
@ -24,7 +24,7 @@
|
||||
#ansistrano_git_branch: master
|
||||
#ansistrano_git_identity_key_path: ""
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.yml"
|
||||
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
||||
ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
||||
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
||||
|
29
apps/webservice/tasks/before-setup.yml
Normal file
29
apps/webservice/tasks/before-setup.yml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: WEBSERVICE | Project directory
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory
|
||||
|
||||
- name: WEBSERVICE | Project releases directory
|
||||
file: path="{{ansistrano_deploy_to}}/releases" state=directory
|
||||
|
||||
- name: WEBSERVICE | Project shared directories
|
||||
file: path="{{ansistrano_deploy_to}}/shared/{{item.src}}" state=directory recurse=yes
|
||||
with_items:
|
||||
- { src: 'cache' }
|
||||
- { src: 'files' }
|
||||
- { src: 'log' }
|
||||
- { src: 'sessions' }
|
||||
- { src: 'wsdl' }
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/clients"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/clients"
|
||||
when: (project_env != "dev") and (st.stat.islnk is not defined or st.stat.islnk == False)
|
||||
|
||||
- stat:
|
||||
path: "{{ansistrano_deploy_to}}/shared/datafile"
|
||||
register: st
|
||||
- fail:
|
||||
msg: "Symlink manquant {{ansistrano_deploy_to}}/shared/datafile"
|
||||
when: (project_env != "dev") and st.stat.islnk is not defined or st.stat.islnk == False
|
Loading…
Reference in New Issue
Block a user