Remove space for vars
This commit is contained in:
parent
46eb804b31
commit
6e485bd7dc
@ -8,8 +8,8 @@
|
||||
project: backoffice
|
||||
project_tree: "master"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -24,15 +24,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -7,13 +7,13 @@
|
||||
# Specific
|
||||
project: webservice
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,7 +1,7 @@
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: BACKOFFICE | Temp Directories
|
||||
file: path="{{ ansistrano_shared_path }}/{{ item.src }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_shared_path}}/{{item.src}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
with_items:
|
||||
- { src: 'export' }
|
||||
- { src: 'import' }
|
||||
@ -10,15 +10,15 @@
|
||||
|
||||
- name: BACKOFFICE | Configure Project application.ini
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
|
||||
- name: BACKOFFICE | Set path in project config
|
||||
become: yes
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ansistrano_deploy_to}}"
|
||||
|
||||
- name: BACKOFFICE | Configuration PHP-FPM
|
||||
become: yes
|
||||
copy: src="./config/.user.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
copy: src="./config/.user.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
|
||||
- name: BACKOFFICE | Set Permission "ansistrano_release_path"
|
||||
become: yes
|
||||
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
project_mode: prod
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/scores/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/scores/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,9 +8,9 @@
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,3 +1,3 @@
|
||||
---
|
||||
- name: Delete .shared-copy
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: BATCH | Configure Project
|
||||
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_mode}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
|
||||
- name: BATCH | Configure Project
|
||||
copy: src="./config/config.{{ project_mode }}.php" dest="{{ansistrano_release_path.stdout}}/application/configs/config.php"
|
||||
copy: src="./config/config.{{project_mode}}.php" dest="{{ansistrano_release_path.stdout}}/application/configs/config.php"
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
project_mode: prod
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/scores/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/scores/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -1,3 +1,3 @@
|
||||
- name: CRONY | Configure Project
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_mode}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -8,8 +8,8 @@
|
||||
project: enrichissement
|
||||
project_tree: master
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -24,15 +24,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,9 +8,9 @@
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,7 +1,7 @@
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -8,4 +8,4 @@
|
||||
|
||||
- name: ENRICHISSEMENT | Set www-data owner of "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes owner=www-data group=www-data
|
@ -1,3 +1,3 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
||||
|
@ -9,8 +9,8 @@
|
||||
project_tree: develop
|
||||
webservice_uri: "http://webservice-ng.sd.lan"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
webservice_uri: "http://webservice.sd.lan"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,13 +8,13 @@
|
||||
project: extranet
|
||||
project_tree: trunk
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -8,13 +8,13 @@
|
||||
project: extranet
|
||||
project_tree: trunk
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,29 +1,29 @@
|
||||
---
|
||||
- name: EXTRANET | Configure
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
|
||||
- name: EXTRANET | Set path in project config
|
||||
become: yes
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ansistrano_deploy_to}}"
|
||||
|
||||
- name: EXTRANET | Set Webservice URI
|
||||
become: yes
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="WEBSERVICE_URI" replace="{{ webservice_uri }}"
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="WEBSERVICE_URI" replace="{{webservice_uri}}"
|
||||
|
||||
- name: EXTRANET | Configuration PHP-FPM
|
||||
become: yes
|
||||
copy: src="./config/.user.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
copy: src="./config/.user.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
|
||||
- name: EXTRANET | Cleanup
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/temp/{{ item.src }}" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/temp/{{item.src}}" state=absent
|
||||
with_items:
|
||||
- { src: 'wsdl' }
|
||||
|
||||
- name: EXTRANET | Create Temp Dir
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/temp/{{ item.src }}" state=directory owner=www-data group=www-data
|
||||
file: path="{{ansistrano_shared_path}}/temp/{{item.src}}" state=directory owner=www-data group=www-data
|
||||
with_items:
|
||||
- { src: 'cache' }
|
||||
- { src: 'files' }
|
||||
@ -36,12 +36,12 @@
|
||||
|
||||
- name: EXTRANET | Create Symlink
|
||||
become: yes
|
||||
file: src={{ item.src }} dest={{ item.dest }} state=link force=yes
|
||||
file: src={{item.src}} dest={{item.dest}} state=link force=yes
|
||||
with_items:
|
||||
- { src: "{{ ansistrano_shared_path }}/persist/logos", dest: "{{ ansistrano_shared_path }}/temp/pages/file/image/logo/q" }
|
||||
- { src: "{{ ansistrano_shared_path }}/temp/pages/imgcache", dest: "{{ ansistrano_shared_path }}/temp/pages/file/image/cache/q" }
|
||||
- { src: "{{ ansistrano_shared_path }}/persist/streetview", dest: "{{ ansistrano_shared_path }}/temp/pages/file/streetview/img/q" }
|
||||
- { src: "{{ansistrano_release_path.stdout}}/public/themes", dest: "{{ ansistrano_shared_path }}/temp/pages/themes" }
|
||||
- { src: "{{ansistrano_shared_path}}/persist/logos", dest: "{{ansistrano_shared_path}}/temp/pages/file/image/logo/q" }
|
||||
- { src: "{{ansistrano_shared_path}}/temp/pages/imgcache", dest: "{{ansistrano_shared_path}}/temp/pages/file/image/cache/q" }
|
||||
- { src: "{{ansistrano_shared_path}}/persist/streetview", dest: "{{ansistrano_shared_path}}/temp/pages/file/streetview/img/q" }
|
||||
- { src: "{{ansistrano_release_path.stdout}}/public/themes", dest: "{{ansistrano_shared_path}}/temp/pages/themes" }
|
||||
|
||||
- name: EXTRANET | Set Permission "ansistrano_release_path"
|
||||
become: yes
|
||||
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
project_mode: prod
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,9 +8,9 @@
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,3 +1,3 @@
|
||||
- name: FLUX | Configure Project
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_mode}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
project_mode: prod
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,9 +8,9 @@
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,7 +1,7 @@
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,3 +1,3 @@
|
||||
- name: Set www-data owner of "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes owner=www-data group=www-data
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from GIT
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,8 +9,8 @@
|
||||
project_tree: develop
|
||||
project_mode: devel
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -9,8 +9,8 @@
|
||||
project_tree: master
|
||||
project_mode: prod
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -25,15 +25,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -7,13 +7,13 @@
|
||||
# Specific
|
||||
project: odea
|
||||
project_tree: develop
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -7,13 +7,13 @@
|
||||
# Specific
|
||||
project: odea
|
||||
project_tree: master
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,7 +1,7 @@
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: ODEA | Create Temp Directories
|
||||
become: yes
|
||||
file: path="{{ansistrano_release_path.stdout}}/data/{{ item.src }}" state=directory owner=www-data group=www-data
|
||||
file: path="{{ansistrano_release_path.stdout}}/data/{{item.src}}" state=directory owner=www-data group=www-data
|
||||
with_items:
|
||||
- { src: 'data' }
|
||||
- { src: 'cache' }
|
||||
@ -9,11 +9,11 @@
|
||||
|
||||
- name: ODEA | Configure Project
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_mode }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_mode}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
|
||||
- name: ODEA | Set path in project config
|
||||
become: yes
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ansistrano_deploy_to}}"
|
||||
|
||||
- name: ODEA | Set Permission "ansistrano_release_path"
|
||||
become: yes
|
||||
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -9,61 +9,61 @@
|
||||
become: yes
|
||||
tasks:
|
||||
- name: MantisBT | Dowonload
|
||||
get_url: url="https://sourceforge.net/projects/mantisbt/files/mantis-stable/{{ version }}/mantisbt-{{ version }}.tar.gz/download" dest="{{ vhosts }}/releases/release-{{ version }}.tar.gz" validate_certs=no
|
||||
get_url: url="https://sourceforge.net/projects/mantisbt/files/mantis-stable/{{version}}/mantisbt-{{version}}.tar.gz/download" dest="{{vhosts}}/releases/release-{{version}}.tar.gz" validate_certs=no
|
||||
|
||||
- name: MantisBT | Extract
|
||||
unarchive: src="{{ vhosts }}/releases/release-{{ version }}.tar.gz" dest="{{ vhosts }}/releases/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/release-{{version}}.tar.gz" dest="{{vhosts}}/releases/" copy=no
|
||||
|
||||
- name: MantisBT | Delete
|
||||
file: path="{{ vhosts }}/releases/release-{{ version }}.tar.gz" state=absent
|
||||
file: path="{{vhosts}}/releases/release-{{version}}.tar.gz" state=absent
|
||||
|
||||
- name: MantisBT | Plugins EmailReporting
|
||||
get_url: url="https://github.com/mantisbt-plugins/EmailReporting/releases/download/EmailReporting_0.9.2/EmailReporting_0.9.2.zip" dest="{{ vhosts }}/releases/dl_plugins/"
|
||||
get_url: url="https://github.com/mantisbt-plugins/EmailReporting/releases/download/EmailReporting_0.9.2/EmailReporting_0.9.2.zip" dest="{{vhosts}}/releases/dl_plugins/"
|
||||
|
||||
- name: MantisBT | Plugins EmailReporting
|
||||
unarchive: src="{{ vhosts }}/releases/dl_plugins/EmailReporting_0.9.2.zip" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/dl_plugins/EmailReporting_0.9.2.zip" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/" copy=no
|
||||
|
||||
- name: MantisBT | Plugins Reminder
|
||||
get_url: url="https://github.com/mantisbt-plugins/Reminder/archive/v2.0.tar.gz" dest="{{ vhosts }}/releases/dl_plugins/"
|
||||
get_url: url="https://github.com/mantisbt-plugins/Reminder/archive/v2.0.tar.gz" dest="{{vhosts}}/releases/dl_plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Reminder
|
||||
unarchive: src="{{ vhosts }}/releases/dl_plugins/Reminder-2.0.tar.gz" dest="{{ vhosts }}/releases/dl_plugins/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/dl_plugins/Reminder-2.0.tar.gz" dest="{{vhosts}}/releases/dl_plugins/" copy=no
|
||||
|
||||
- name: MantisBT | Plugins Reminder
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/Reminder-2.0" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/Reminder"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/Reminder-2.0" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/Reminder"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
get_url: url="https://github.com/mantisbt-plugins/source-integration/archive/release-0.13.2.tar.gz" dest="{{ vhosts }}/releases/dl_plugins/"
|
||||
get_url: url="https://github.com/mantisbt-plugins/source-integration/archive/release-0.13.2.tar.gz" dest="{{vhosts}}/releases/dl_plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
unarchive: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2.tar.gz" dest="{{ vhosts }}/releases/dl_plugins/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2.tar.gz" dest="{{vhosts}}/releases/dl_plugins/" copy=no
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2/Source" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2/Source" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2/SourceGithub" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2/SourceGithub" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2/SourceGitweb" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2/SourceGitweb" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2/SourceSFSVN" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2/SourceSFSVN" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/"
|
||||
|
||||
- name: MantisBT | Plugins Source Integration
|
||||
copy: src="{{ vhosts }}/releases/dl_plugins/source-integration-release-0.13.2/SourceWebSVN" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/plugins/"
|
||||
copy: src="{{vhosts}}/releases/dl_plugins/source-integration-release-0.13.2/SourceWebSVN" dest="{{vhosts}}/releases/mantisbt-{{version}}/plugins/"
|
||||
|
||||
- name: MantisBT | Config
|
||||
copy: src="./config/config_inc.php" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/config/config_inc.php"
|
||||
copy: src="./config/config_inc.php" dest="{{vhosts}}/releases/mantisbt-{{version}}/config/config_inc.php"
|
||||
|
||||
- name: MantisBT | .user.ini
|
||||
copy: src="./config/.user.ini" dest="{{ vhosts }}/releases/mantisbt-{{ version }}/.user.ini"
|
||||
copy: src="./config/.user.ini" dest="{{vhosts}}/releases/mantisbt-{{version}}/.user.ini"
|
||||
|
||||
- name: MantisBT | Permission
|
||||
file: path="{{ vhosts }}/releases/mantisbt-{{ version }}" owner=www-data group=www-data
|
||||
file: path="{{vhosts}}/releases/mantisbt-{{version}}" owner=www-data group=www-data
|
||||
|
||||
- name: MantisBT | Symlink
|
||||
file: src="{{ vhosts }}/releases/mantisbt-{{ version }}" dest="{{ vhosts }}/current" owner=www-data group=www-data state=link
|
||||
file: src="{{vhosts}}/releases/mantisbt-{{version}}" dest="{{vhosts}}/current" owner=www-data group=www-data state=link
|
||||
|
||||
- name: MantisBT | Restart PHP-FPM
|
||||
become: yes
|
||||
@ -71,5 +71,5 @@
|
||||
when: opcache is defined and opcache == "fcgi"
|
||||
|
||||
- name: MantisBT | Cleanup
|
||||
shell: ls -1dt {{ vhosts }}/releases/* | tail -n +{{ keep_releases | int + 1 }} | xargs rm -rf
|
||||
shell: ls -1dt {{vhosts}}/releases/* | tail -n +{{keep_releases | int + 1}} | xargs rm -rf
|
||||
when: keep_releases > 0
|
||||
|
@ -9,23 +9,23 @@
|
||||
become: yes
|
||||
tasks:
|
||||
- name: PMA | Download
|
||||
get_url: url="https://files.phpmyadmin.net/phpMyAdmin/{{ version }}/phpMyAdmin-{{ version }}-all-languages.tar.xz" dest="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages.tar.xz" validate_certs=no
|
||||
get_url: url="https://files.phpmyadmin.net/phpMyAdmin/{{version}}/phpMyAdmin-{{version}}-all-languages.tar.xz" dest="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages.tar.xz" validate_certs=no
|
||||
- name: PMA | Extract
|
||||
unarchive: src="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages.tar.xz" dest="{{ vhosts }}/releases/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages.tar.xz" dest="{{vhosts}}/releases/" copy=no
|
||||
- name: PMA | Delete
|
||||
file: path="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages.tar.xz" state=absent
|
||||
file: path="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages.tar.xz" state=absent
|
||||
- name: PMA | Config
|
||||
copy: src="./config/{{ config }}" dest="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages/config.inc.php"
|
||||
copy: src="./config/{{config}}" dest="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages/config.inc.php"
|
||||
- name: PMA | .user.ini
|
||||
copy: src="./config/.user.ini" dest="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages/.user.ini"
|
||||
copy: src="./config/.user.ini" dest="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages/.user.ini"
|
||||
- name: PMA | Permission
|
||||
file: path="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages" owner=www-data group=www-data
|
||||
file: path="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages" owner=www-data group=www-data
|
||||
- name: PMA | Symlink
|
||||
file: src="{{ vhosts }}/releases/phpMyAdmin-{{ version }}-all-languages" dest="{{ vhosts }}/current" owner=www-data group=www-data state=link
|
||||
file: src="{{vhosts}}/releases/phpMyAdmin-{{version}}-all-languages" dest="{{vhosts}}/current" owner=www-data group=www-data state=link
|
||||
- name: PMA | Restart PHP-FPM
|
||||
become: yes
|
||||
command: "service php5-fpm restart"
|
||||
when: opcache is defined and opcache == "fcgi"
|
||||
- name: PMA | Cleanup
|
||||
shell: ls -1dt {{ vhosts }}/releases/* | tail -n +{{ keep_releases | int + 1 }} | xargs rm -rf
|
||||
shell: ls -1dt {{vhosts}}/releases/* | tail -n +{{keep_releases | int + 1}} | xargs rm -rf
|
||||
when: keep_releases > 0
|
||||
|
@ -9,22 +9,22 @@
|
||||
become: yes
|
||||
tasks:
|
||||
- name: ROUNDCUBE | Download
|
||||
get_url: url="https://github.com/roundcube/roundcubemail/releases/download/{{ version }}/roundcubemail-{{ version }}-complete.tar.gz" dest="{{ vhosts }}/releases/roundcubemail-{{ version }}-complete.tar.gz" validate_certs=no
|
||||
get_url: url="https://github.com/roundcube/roundcubemail/releases/download/{{version}}/roundcubemail-{{version}}-complete.tar.gz" dest="{{vhosts}}/releases/roundcubemail-{{version}}-complete.tar.gz" validate_certs=no
|
||||
- name: ROUNDCUBE | Extract
|
||||
unarchive: src="{{ vhosts }}/releases/roundcubemail-{{ version }}-complete.tar.gz" dest="{{ vhosts }}/releases/" copy=no
|
||||
unarchive: src="{{vhosts}}/releases/roundcubemail-{{version}}-complete.tar.gz" dest="{{vhosts}}/releases/" copy=no
|
||||
- name: ROUNDCUBE | Delete
|
||||
file: path="{{ vhosts }}/releases/roundcubemail-{{ version }}-complete.tar.gz" state=absent
|
||||
file: path="{{vhosts}}/releases/roundcubemail-{{version}}-complete.tar.gz" state=absent
|
||||
- name: ROUNDCUBE | Config
|
||||
copy: src="./config/config.inc.php" dest="{{ vhosts }}/releases/roundcubemail-{{ version }}/config/config.inc.php"
|
||||
copy: src="./config/config.inc.php" dest="{{vhosts}}/releases/roundcubemail-{{version}}/config/config.inc.php"
|
||||
- name: ROUNDCUBE | .user.ini
|
||||
copy: src="./config/.user.ini" dest="{{ vhosts }}/releases/roundcubemail-{{ version }}/.user.ini"
|
||||
copy: src="./config/.user.ini" dest="{{vhosts}}/releases/roundcubemail-{{version}}/.user.ini"
|
||||
- name: ROUNDCUBE | Permission
|
||||
file: path="{{ vhosts }}/releases/roundcubemail-{{ version }}" owner=www-data group=www-data
|
||||
file: path="{{vhosts}}/releases/roundcubemail-{{version}}" owner=www-data group=www-data
|
||||
- name: ROUNDCUBE | Symlink
|
||||
file: src="{{ vhosts }}/releases/roundcubemail-{{ version }}" dest="{{ vhosts }}/current" owner=www-data group=www-data state=link
|
||||
file: src="{{vhosts}}/releases/roundcubemail-{{version}}" dest="{{vhosts}}/current" owner=www-data group=www-data state=link
|
||||
- name: ROUNDCUBE | Opcache
|
||||
command: "/usr/bin/php /home/deploy/cachetool.phar opcache:reset --fcgi=/var/run/php5-fpm.sock"
|
||||
when: opcache is defined and opcache == "fcgi"
|
||||
- name: ROUNDCUBE | Cleanup
|
||||
shell: ls -1dt {{ vhosts }}/releases/* | tail -n +{{ keep_releases | int + 1 }} | xargs rm -rf
|
||||
shell: ls -1dt {{vhosts}}/releases/* | tail -n +{{keep_releases | int + 1}} | xargs rm -rf
|
||||
when: keep_releases > 0
|
||||
|
@ -8,8 +8,8 @@
|
||||
project: webservice
|
||||
project_tree: "develop"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -24,15 +24,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,8 +8,8 @@
|
||||
project: webservice
|
||||
project_tree: master
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{ project }}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
@ -24,15 +24,15 @@
|
||||
#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_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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_setup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-setup-tasks.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"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -8,13 +8,13 @@
|
||||
project: webservice
|
||||
project_tree: trunk
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}-ng"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-ng"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -8,13 +8,13 @@
|
||||
project: webservice
|
||||
project_tree: trunk
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_to: "/home/vhosts/{{ project }}"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
# Hooks: custom tasks if you need them
|
||||
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-rollback }
|
@ -1,7 +1,7 @@
|
||||
- name: Authorize deploy user to write in "ansistrano_deploy_to"
|
||||
become: yes
|
||||
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_deploy_to}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
|
||||
- name: Delete .shared-copy
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/.shared-copy" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/.shared-copy" state=absent
|
@ -1,25 +1,25 @@
|
||||
---
|
||||
- name: WEBSERVICE | Copy needed files
|
||||
become: yes
|
||||
copy: src="{{ ansistrano_deploy_from }}/data/files" dest="{{ ansistrano_shared_path }}/" force=yes
|
||||
copy: src="{{ansistrano_deploy_from}}/data/files" dest="{{ansistrano_shared_path}}/" force=yes
|
||||
|
||||
- name: WEBSERVICE | Configure Project
|
||||
become: yes
|
||||
copy: src="./config/application.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/application.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
when: project_config != "prod"
|
||||
|
||||
- name: WEBSERVICE | Configure Project
|
||||
become: yes
|
||||
copy: src="./config/prod/{{ inventory_hostname }}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/prod/{{inventory_hostname}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
when: project_config == "prod"
|
||||
|
||||
- name: WEBSERVICE | Set path in project config
|
||||
become: yes
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
|
||||
replace: dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ansistrano_deploy_to}}"
|
||||
|
||||
- name: WEBSERVICE | Configuration PHP-FPM
|
||||
become: yes
|
||||
copy: src="./config/.user.{{ project_config }}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
copy: src="./config/.user.{{project_config}}.ini" dest="{{ansistrano_release_path.stdout}}/public/.user.ini"
|
||||
|
||||
- name: WEBSERVICE | Generate Evenements Cache
|
||||
become: yes
|
||||
@ -27,14 +27,14 @@
|
||||
|
||||
- name : WEBSERVICE | Cleanup
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/{{ item.src }}" state=absent
|
||||
file: path="{{ansistrano_shared_path}}/{{item.src}}" state=absent
|
||||
with_items:
|
||||
- { src: 'cache' }
|
||||
- { src: 'wsdl' }
|
||||
|
||||
- name: WEBSERVICE | Temp Directories
|
||||
become: yes
|
||||
file: path="{{ ansistrano_shared_path }}/{{ item.src }}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
file: path="{{ansistrano_shared_path}}/{{item.src}}" state=directory recurse=yes mode="u=rwx,g=rwx,o=rx" owner=www-data group=www-data
|
||||
with_items:
|
||||
- { src: 'cache' }
|
||||
- { src: 'wsdl' }
|
||||
|
@ -1,2 +1,2 @@
|
||||
- name: Extract project from Git
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{ project }}" --tree "{{ project_tree }}"
|
||||
local_action: command php /home/vhosts/deploy/git/export.php --deploy --projet "{{project}}" --tree "{{project_tree}}"
|
@ -6,7 +6,7 @@
|
||||
- name: Add deploy user
|
||||
user: name=deploy comment="Deploy User" groups=adm,sudo,www-data shell=/bin/bash
|
||||
- name: Adding authorized key to deploy user
|
||||
authorized_key: user=deploy key="{{ item }}"
|
||||
authorized_key: user=deploy key="{{item}}"
|
||||
with_file:
|
||||
- ../files/authorized_keys.deploy.pub
|
||||
- name: Ensure /etc/sudoers.d is scanned by sudo
|
||||
|
Loading…
Reference in New Issue
Block a user