fixed devel ansible

This commit is contained in:
Radu Ioan Fericean
2014-02-28 15:43:54 +02:00
parent 4833eb94c3
commit be8ea3bcc9
2 changed files with 5 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# View the documentation for the provider you're using for more
# information on available options.
config.vm.provision "ansible" do |ansible|
ansible.playbook = "cgrates_release.yml"
ansible.playbook = "cgrates_devel.yml"
#ansible.verbose = "vvvv"
end
end

View File

@@ -38,11 +38,7 @@
- name: copy .my.cnf
template: src=my.cnf dest=/root/.my.cnf mode=0600
- hosts: all
user: vagrant
tasks:
- name: get golang
get_url: url=http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz dest=~/go1.2.linux-amd64.tar.gz
@@ -59,11 +55,12 @@
shell: GOROOT=~/go GOPATH=~/code ~/go/bin/go get -u -v github.com/cgrates/cgrates
- name: create a link to data dir
file: src=~/code/src/github.com/cgrates/cgrates/data dest=/usr/share/cgrates state=symlink
sudo: yes
file: src=~/code/src/github.com/cgrates/cgrates/data dest=/usr/share/cgrates state=link
- name: setup database tables
shell: chdir=/usr/share/cgrates/storage/mysql ./setup_cgr_db.sh root {{ root_db_password }} localhost
- name: create link to cgrates dir
file: src=~/code/src/github.com/cgrates/cgrates dest=~/cgr state=symlink
file: src=~/code/src/github.com/cgrates/cgrates dest=~/cgr state=link