Thanks Mark - I'll take a closer look at that and post my findings back 
here.

On Tuesday, 19 August 2014 17:07:38 UTC+1, Mark McCoy wrote:
>
> It's probable something to do with the PATH in your bash environment. 
>  When you login interactively, the .profile rc file gets run and normally 
> sets up the PATH. I would imagine that when you login via ansible you don't 
> have the directory for PlistBuddy or sqlite3 in your PATH so those commands 
> fail.
>
> You can either fiddle with your ssh_args in the ansible config files to 
> tell ssh to make the shell a login shell, or you can just put the full path 
> to Sqlite3 and PlistBuddy on those lines of your .bashrc file.
>
>
> ----
> Mark McCoy <http://markmccoy.us>
>
>
>
> On Tue, Aug 19, 2014 at 4:16 AM, Dan Bohea <[email protected] <javascript:>
> > wrote:
>
>> I'm writing a Mac setup playbook and am borrowing heavily from various 
>> "dotfiles" around the web to help with configuring certain aspects of OS X.
>>
>> Here's my current dotfile which is effectively just a bash script:
>>
>>
>> https://bitbucket.org/dbohea/mac-setup-playbook/src/0b4d30a3e44a16462d94808c66e15eba0aa44f7d/osx.sh?at=master
>>
>> This runs just fine directly from the command line. Oddly, when run from 
>> an Ansible playbook, none of the PlistBuddy or sqlite3 commands seem to 
>> work.
>>
>> Anyone know why this may be or what I can do to fix it?
>>
>>
>> PS - Before anyone suggests it, it's nothing to do with the if statement 
>> at the end of the file - I've tested this.
>>
>> -- 
>> 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/3d8b6856-9fb6-479e-a15b-7367d073264c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/3d8b6856-9fb6-479e-a15b-7367d073264c%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/f4e7afbc-276d-4197-8c34-14f79d1bd006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to