App Flux complete

This commit is contained in:
Michael RICOIS 2016-02-04 17:54:53 +01:00
parent 30241c4b51
commit dbc8849506
7 changed files with 37 additions and 6 deletions

View File

@ -1 +0,0 @@
COUCOU

View File

@ -4,19 +4,32 @@
remote_user: deploy
become: yes
vars:
ansistrano_deploy_from: /home/vhosts/ansible/flux/demo/
ansistrano_deploy_to: /home/vhosts/ansible/flux
# Always add a trailing / if you want rsync the content of the directory
ansistrano_deploy_from: /home/vhosts/deploy/export/flux/
ansistrano_deploy_to: /home/flux
ansistrano_version_dir: releases
ansistrano_current_dir: current
ansistrano_shared_paths: []
ansistrano_keep_releases: 4
ansistrano_deploy_via: rsync
ansistrano_allow_anonymous_stats: yes
# Variables used in the rsync deployment strategy
ansistrano_rsync_extra_params: ""
ansistrano_rsync_set_remote_user: yes
# Variables used in the Git deployment strategy
#ansistrano_git_repo: ssh://git@192.168.78.249:10022/SCORES/flux.git
#ansistrano_git_branch: master
#ansistrano_git_identity_key_path: ""
# Hooks: custom tasks if you need them
#ansistrano_before_symlink_shared_tasks_file: "/home/vhosts/ansible/backoffice/tasks/my-before-symlink-shared-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 }

View File

@ -1 +1 @@
192.168.78.240 ansible_user=scores
192.168.78.240

View File

@ -1 +1 @@
192.168.3.203 ansible_user=scores

View File

@ -0,0 +1 @@
192.168.3.202 ansible_port=2222

View File

@ -0,0 +1,16 @@
---
- name: Rollback flux
hosts: all
remote_user: deploy
become: yes
vars:
ansistrano_deploy_to: /home/flux
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"
roles:
- { role: carlosbuenosvinos.ansistrano-rollback }

View File

@ -0,0 +1,2 @@
- name: Extract project from Git
local_action: php /home/vhosts/deploy/git/export.php --projet flux --deploy