Change deploy configuration
Add hosts variables for prod configuration
This commit is contained in:
@ -2,8 +2,11 @@
|
||||
- name: Deploy homepage
|
||||
hosts: all
|
||||
|
||||
vars_files:
|
||||
- vars/all.yml
|
||||
vars:
|
||||
ansistrano_deploy_from: "{{ playbook_dir }}/../output_prod/"
|
||||
ansistrano_deploy_to: "{{ application_root }}"
|
||||
ansistrano_keep_releases: 3
|
||||
ansistrano_deploy_via: rsync
|
||||
|
||||
roles:
|
||||
- carlosbuenosvinos.ansistrano-deploy
|
||||
|
1
ansible/hosts_prod
Normal file
1
ansible/hosts_prod
Normal file
@ -0,0 +1 @@
|
||||
anwinged.ru application_root=/var/www/anwinged
|
@ -2,8 +2,8 @@
|
||||
- name: Rollback homepage
|
||||
hosts: all
|
||||
|
||||
vars_files:
|
||||
- vars/all.yml
|
||||
vars:
|
||||
ansistrano_deploy_to: "{{ application_root }}"
|
||||
|
||||
roles:
|
||||
- carlosbuenosvinos.ansistrano-rollback
|
||||
|
@ -20,11 +20,4 @@ php_packages:
|
||||
- php7.1-mbstring
|
||||
- php7.1-intl
|
||||
- php7.1-curl
|
||||
- php7.1-xml
|
||||
|
||||
# Vars for ansistrano
|
||||
|
||||
ansistrano_deploy_from: "{{ playbook_dir }}/../output_prod/"
|
||||
ansistrano_deploy_to: "/var/www/{{ site.www_dir }}"
|
||||
ansistrano_keep_releases: 3
|
||||
ansistrano_deploy_via: rsync
|
||||
- php7.1-xml
|
||||
|
Reference in New Issue
Block a user