Fix example playbook

This commit is contained in:
Nick Janetakis
2014-07-30 17:14:06 -04:00
parent 6c330f3032
commit 4a63c21a72
2 changed files with 15 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ To use this role edit your `site.yml` file to look something like this:
```
---
- name: ensure app servers are configured
- hosts: app
hosts: app
roles:
# If you use the default rvm install location you must enable sudo
@@ -35,10 +35,21 @@ Let's say you want to edit a few values, you can do this by opening or creating
```
---
# Let's install rvm locally to a user and install multiple versions of ruby.
# We can dump the rvm install script to /tmp.
rvm1_temp_download_path: '/tmp'
# If you're going to use the ~ shortcut and you have sudo enabled then make sure
# you set sudo_user on the role to the correct user or it will be root.
# ie. { role: rvm_io.rvm1-ruby, tags: ruby, sudo: true, sudo_user: '{{ rvm1_user }}' }
# Another option is just to not set sudo for the rvm role at all.
rvm1_install_path: '~/.rvm'
rvm1_rubies:
- 'ruby-2.1.0'
- 'ruby-2.1.2'
rvm1_rvm_stable_version_number: 1.25.26
```
## Role variables