If it's absolutely pathed that shouldn't matter and shouldn't be an ansible
thing.

When you say it's not being run, perhaps this is an issue with your shell
script.

Ansible will tell you if the script failed and returned a non-zero status,
of course, and can include output from the script if you want to add some
debug.

However, if plist buddy does call sqlite and sqlite is in a different path
(I don't know ANYTHING about plistbuddy) you would still need to set the
path stuff.




On Wed, Aug 20, 2014 at 9:27 AM, Dan Bohea <[email protected]> wrote:

> Thanks for looking.
>
> PlistBuddy is called with an absolute path in osx.sh (see lines 198-205
> for example):
>
> https://bitbucket.org/dbohea/mac-setup-playbook/src/
> 0b4d30a3e44a16462d94808c66e15eba0aa44f7d/osx.sh?at=master
>
> I added the following but it doesn't seem tt make a difference (sqlite3
> doesn't seem to get run):
>
> - name: Execute .osx
>   # TODO: doesn't run commands that use PlistBuddy or sqlite3
>   shell: ./osx.sh --ansible
>   notify: killall
>   environment:
>     PATH: "/usr/bin:/usr/bin/sqlite3/bin"
>
> I also tried the following but still no dice:
>
> PATH: "/usr/bin:/usr/bin/sqlite3"
>
>  --
> 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/a07335af-5284-4b2b-9d58-66b46a74239b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a07335af-5284-4b2b-9d58-66b46a74239b%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/CA%2BnsWgx89jJ2H-pcWEP2dfWs93MzFDbT4h1BSCA9x%3DVVGo5y5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to