Thanks. Finally this time around it work, i might type some things wrong 
last time. 

Just a follow-up question, what is the expected default path to avoid 
providing the executable path? thanks.

On Monday, August 4, 2014 7:06:19 AM UTC-5, Michael DeHaan wrote:
>
> Looks like you definitely need to pass the executable flag again.
>
> I know you said you tried this, so if so, please show the playbook and the 
> output.   Otherwise, I'm going off the paste above that shows it not being 
> passed :)
>
> Thanks!
>
>
>
>
> On Sun, Aug 3, 2014 at 9:43 PM, Tze Yang Ng <[email protected] 
> <javascript:>> wrote:
>
>> RubyGems Environment:
>>
>>   - RUBYGEMS VERSION: 1.6.2
>>
>>   - RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
>>
>>   - INSTALLATION DIRECTORY: /opt/vagrant_ruby/lib/ruby/gems/1.8
>>
>>   - RUBY EXECUTABLE: /opt/vagrant_ruby/bin/ruby
>>
>>   - EXECUTABLE DIRECTORY: /opt/vagrant_ruby/bin
>>
>>   - RUBYGEMS PLATFORMS:
>>
>>     - ruby
>>
>>     - x86-linux
>>
>>   - GEM PATHS:
>>
>>      - /opt/vagrant_ruby/lib/ruby/gems/1.8
>>
>>      - /home/vagrant/.gem/ruby/1.8
>>
>>   - GEM CONFIGURATION:
>>
>>      - :update_sources => true
>>
>>      - :verbose => true
>>
>>      - :benchmark => false
>>
>>      - :backtrace => false
>>
>>      - :bulk_threshold => 1000
>>
>>   - REMOTE SOURCES:
>>
>>      - http://rubygems.org/
>>
>> On Sunday, August 3, 2014 5:07:55 PM UTC-5, Dick Davies wrote:
>>
>>> Where is the gem command on your system? 
>>>
>>> On 3 August 2014 18:32, Tze Yang Ng <[email protected]> wrote: 
>>> > Don't think that is the issue, i already tried below before.Same 
>>> issue. 
>>> > 
>>> > --- 
>>> > - name: Ruby | Install Ruby 
>>> >   apt: pkg=ruby update-cache=yes 
>>> >   sudo: yes 
>>> >   tags: ruby 
>>> > 
>>> > - name: Ruby | Install compass gem 
>>> >   gem: name=compass state=latest 
>>> >   sudo: yes 
>>> >   tags: ruby 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > On Sunday, August 3, 2014 11:15:19 AM UTC-5, Michael DeHaan wrote: 
>>> >> 
>>> >> Sounds like you may need to pass the executable parameter. 
>>> >> 
>>> >> http://docs.ansible.com/gem_module.html 
>>> >> 
>>> >> 
>>> >> 
>>> >> 
>>> >> On Sat, Aug 2, 2014 at 3:48 PM, Tze Yang Ng <[email protected]> 
>>> wrote: 
>>> >>> 
>>> >>> ansible-playbook 1.7 (devel 27a73f2c11) last updated 2014/08/01 
>>> 15:00:46 
>>> >>> (GMT -500) 
>>> >>> 
>>> >>> 
>>> >>> On Saturday, August 2, 2014 12:49:57 PM UTC-5, Michael DeHaan wrote: 
>>> >>>> 
>>> >>>> What version of Ansible are you running? 
>>> >>>> 
>>> >>>> ansible-playbook --version 
>>> >>>> 
>>> >>>> 
>>> >>>> 
>>> >>>> 
>>> >>>> On Sat, Aug 2, 2014 at 12:09 AM, Tze Yang Ng <[email protected]> 
>>> wrote: 
>>> >>>>> 
>>> >>>>> Hi, 
>>> >>>>> 
>>> >>>>> I am new to Vagrant and Ansible. Trying to use a playbook to 
>>> install 
>>> >>>>> compass using gem command but got the following error. Seem like i 
>>> miss some 
>>> >>>>> setting on env? 
>>> >>>>> 
>>> >>>>> TASK: [ruby | Ruby | Install compass gem] 
>>> >>>>> ************************************* 
>>> >>>>> 
>>> >>>>> failed: [default] => {"failed": true} 
>>> >>>>> 
>>> >>>>> msg: Failed to find required executable gem 
>>> >>>>> 
>>> >>>>> FATAL: all hosts have already failed -- aborting 
>>> >>>>> 
>>> >>>>> This is the playbook content: 
>>> >>>>> 
>>> >>>>> --- 
>>> >>>>> 
>>> >>>>> - name: Ruby | Install Ruby 
>>> >>>>> 
>>> >>>>>   apt: pkg=ruby update-cache=yes 
>>> >>>>> 
>>> >>>>>   sudo: yes 
>>> >>>>> 
>>> >>>>>   tags: ruby 
>>> >>>>> 
>>> >>>>> 
>>> >>>>> - name: Ruby | Install compass gem 
>>> >>>>> 
>>> >>>>>   gem: name=compass 
>>> >>>>> 
>>> >>>>>   sudo: yes 
>>> >>>>> 
>>> >>>>>   tags: ruby 
>>> >>>>> 
>>> >>>>> Please help. 
>>> >>>>> 
>>> >>>>> -- 
>>> >>>>> You received this message because you are subscribed to the Google 
>>> >>>>> Groups "Ansible Project" group. 
>>> >>>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send 
>>> >>>>> an email to [email protected]. 
>>> >>>>> To post to this group, send email to [email protected]. 
>>> >>>>> 
>>> >>>>> To view this discussion on the web visit 
>>> >>>>> https://groups.google.com/d/msgid/ansible-project/
>>> a811190d-df33-41e8-8fe5-0051d671455a%40googlegroups.com. 
>>> >>>>> For more options, visit https://groups.google.com/d/optout. 
>>> >>>> 
>>> >>>> 
>>> >>> -- 
>>> >>> You received this message because you are subscribed to the Google 
>>> Groups 
>>> >>> "Ansible Project" group. 
>>> >>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an 
>>> >>> email to [email protected]. 
>>> >>> To post to this group, send email to [email protected]. 
>>> >>> To view this discussion on the web visit 
>>> >>> https://groups.google.com/d/msgid/ansible-project/
>>> 068544e5-0966-478f-919b-6d2ff498abcd%40googlegroups.com. 
>>> >>> 
>>> >>> For more options, visit https://groups.google.com/d/optout. 
>>> >> 
>>> >> 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups 
>>> > "Ansible Project" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an 
>>> > email to [email protected]. 
>>> > To post to this group, send email to [email protected]. 
>>> > To view this discussion on the web visit 
>>> > https://groups.google.com/d/msgid/ansible-project/
>>> 56647fc0-ba48-440f-8d3e-8594f6500b95%40googlegroups.com. 
>>> > 
>>> > For more options, visit https://groups.google.com/d/optout. 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/12db0cc4-d7b1-4de9-afdb-99a8f95b24fe%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/12db0cc4-d7b1-4de9-afdb-99a8f95b24fe%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/975bc84b-70ac-4c3a-be25-19180151d2f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to