--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3d8b6856-9fb6-479e-a15b-7367d073264c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5bc8a7ec-e0ff-437d-9f33-ba305726833a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAP2%3DG9OU2fJBZskiMivMcV7PkJ6tJbeb3bwaOTOWDwbR2yGDQQ%40mail.gmail.com.
# TODO: doesn't run commands that use PlistBuddy or sqlite3 shell: ./osx.sh --ansible notify: killall
Inside osx.sh are PlistBuddy and sqlite3 absolute-pathed? I assume they are not. I suspect they are in a path defined in your local environment, and won't be in the path for ansible, because of the way we enforce centralized and reliable configurations - not trusting 500 servers who might all have different .bashrcs, etc, we don't log in with interactive shells.
You'll want to read this section:
http://docs.ansible.com/playbooks_environment.html
Then:
- name: Execute .osx
# TODO: doesn't run commands that use PlistBuddy or sqlite3
shell: ./osx.sh --ansible
notify: killall
environment:
PATH: "/usr/bin:/opt/where/is/buddy/bin:/opt/where/is/sqlite3/bin"
And you should be good to go.
I got a very nice recent PR to make the environment keyword also be applied at play level, though right now it's task level only.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bb810cc3-e386-4a39-ba49-43e47d11c0d9%40googlegroups.com.
- 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"
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a07335af-5284-4b2b-9d58-66b46a74239b%40googlegroups.com.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c54fe581-a70d-4789-bce8-5a2f429d4d3a%40googlegroups.com.
which sqlite3
/usr/bin/sqlite3
/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3a51cc97-8349-4019-a93f-65452d44196a%40googlegroups.com.
TASK: [osx | Execute .osx] ****************************************************
<127.0.0.1> REMOTE_MODULE command ./osx.sh --ansible #USE_SHELL
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013 && echo $HOME/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013']
<127.0.0.1> PUT /var/folders/5d/ry1gfqbx0rs8bmpy7lw0909w0000gn/T/tmpjDc9QL TO /Users/danbohea/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013/command
<127.0.0.1> EXEC ['/bin/sh', '-c', u'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /Users/danbohea/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013/command; rm -rf /Users/danbohea/.ansible/tmp/ansible-tmp-1408559599.6-238488648926013/ >/dev/null 2>&1']
changed: [127.0.0.1] => {"changed": true, "cmd": "./osx.sh --ansible", "delta": "0:00:01.105129", "end": "2014-08-20 11:33:20.811287", "rc": 0, "start": "2014-08-20 11:33:19.706158", "stderr": "", "stdout": ""}
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d0e5319d-88b9-4523-9a0e-5d672b0756a7%40googlegroups.com.