Commit 6789632b by Jason Bau

moved var and task to ruby role per @jarv

parent 5194ab62
--- ---
app_base_dir: /opt/wwc app_base_dir: /opt/wwc
ruby_base: /opt/www
#where are the secure files on the deploying machine? #where are the secure files on the deploying machine?
secure_file_dir: ../../edx-secret/ansible/vars/ secure_file_dir: ../../edx-secret/ansible/vars/
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
- name: Create application root - name: Create application root
sudo: True sudo: True
file: path=$app_base_dir state=directory owner=root group=root file: path=$app_base_dir state=directory owner=root group=root
- name: Create ruby base
sudo: True
file: path=$ruby_base state=directory owner=www group=www
- name: Create log directory - name: Create log directory
sudo: True sudo: True
file: path=/mnt/logs state=directory file: path=/mnt/logs state=directory
......
# #
#cribbed from https://github.com/mmoya/ansible-playbooks/blob/master/rbenv/main.yml #cribbed from https://github.com/mmoya/ansible-playbooks/blob/master/rbenv/main.yml
- name: Create ruby base
sudo: True
file: path=$ruby_base state=directory owner=www group=www
- name: rbenv | install build depends - name: rbenv | install build depends
sudo: true sudo: true
apt: pkg=$item state=present install_recommends=no apt: pkg=$item state=present install_recommends=no
......
--- ---
ruby_base: /opt/www
rbenv_root: "{{ ruby_base }}/.rbenv" rbenv_root: "{{ ruby_base }}/.rbenv"
ruby_version: "1.9.3-p374" ruby_version: "1.9.3-p374"
gem_home: "{{ ruby_base }}/.gem" gem_home: "{{ ruby_base }}/.gem"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment