Structure des projets

This commit is contained in:
Michael RICOIS 2017-03-03 16:49:42 +01:00
parent b419e9acf6
commit c4bc6b8b3c
11 changed files with 106 additions and 10 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View 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)

View 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)

View File

@ -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"

View 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

View 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)

View File

@ -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"

View File

@ -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"

View 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