Download:
child 107:7dee6d151401
parent 105:a0b4b59d86d5
106:807d12ac771c
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 17:12:00 +0800
provision: move repo url and revision to vars

2 файлов изменено, 6 вставок(+), 1 удалений(-) [+]
provision/roles/fruitbar/tasks/appinstall.yml file | annotate | diff | comparison | revisions
provision/roles/fruitbar/vars/main.yml file | annotate | diff | comparison | revisions
--- a/provision/roles/fruitbar/tasks/appinstall.yml Wed Jul 20 19:04:15 2016 +0800
+++ b/provision/roles/fruitbar/tasks/appinstall.yml Thu Jul 21 17:12:00 2016 +0800
@@ -6,7 +6,10 @@
copy: src=.hgrc dest=/home/{{ user }}/.hgrc
- name: Pull code
- hg: repo=https://bitbucket.org/av6/fruitbar dest=/home/{{ user }}/webapps/fruitbar/
+ hg:
+ repo: '{{ repo }}'
+ dest: /home/{{ user }}/webapps/fruitbar/
+ revision: '{{ revision }}'
notify:
- restart fruitbar
--- a/provision/roles/fruitbar/vars/main.yml Wed Jul 20 19:04:15 2016 +0800
+++ b/provision/roles/fruitbar/vars/main.yml Thu Jul 21 17:12:00 2016 +0800
@@ -1,5 +1,7 @@
---
user: projects
+repo: 'https://bitbucket.org/av6/fruitbar'
+revision: default
site_order: 50
ssl_cert: /etc/ssl/local/fruitbar.{{ umbrella }}.pem
ssl_key: /etc/ssl/local/fruitbar.{{ umbrella }}.clean.key