Download:
child 72:249e458f53ec
parent 70:2f88777f104d
71:fc18ae0e2cd1
Anton Shestakov <av6@dwimlabs.net>, Wed, 30 Mar 2016 17:43:33 +0800
provision: pull the project repo as a part of the deployment process

2 файлов изменено, 6 вставок(+), 0 удалений(-) [+]
contrib/provision/roles/tram-im/tasks/appinstall.yml file | annotate | diff | comparison | revisions
contrib/provision/roles/tram-im/vars/main.yml file | annotate | diff | comparison | revisions
--- a/contrib/provision/roles/tram-im/tasks/appinstall.yml Tue Mar 29 20:18:50 2016 +0800
+++ b/contrib/provision/roles/tram-im/tasks/appinstall.yml Wed Mar 30 17:43:33 2016 +0800
@@ -13,4 +13,8 @@
- name: Download WebRTC adapter
get_url: url=https://webrtc.github.io/adapter/adapter-1.0.4.js dest={{ dir }}/vendor/webrtc-adapter-1.0.4.js
+
+- name: Pull Tram-IM {{ revision }}
+ hg: repo={{ repo }} dest={{ dir }} revision={{ revision }}
+ when: ansible_virtualization_type != "virtualbox"
...
--- a/contrib/provision/roles/tram-im/vars/main.yml Tue Mar 29 20:18:50 2016 +0800
+++ b/contrib/provision/roles/tram-im/vars/main.yml Wed Mar 30 17:43:33 2016 +0800
@@ -1,6 +1,8 @@
---
ssl_cert: /etc/ssl/selfsigned/{{ domain }}/selfsigned.pem
ssl_key: /etc/ssl/selfsigned/{{ domain }}/clean.key
+repo: https://bitbucket.org/av6/tram-im
+revision: default
dir: /vagrant/
user: vagrant
...