I'm getting these errors when I set launch daemon to run ansible-pull, and
it works well when I run the script directly in terminal.
Starting ansible-pull at 2015-08-27 11:46:47
localhost | FAILED >> {
"failed": true,
"msg": "Failed to find required executable git"
}
The launchd file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.myprogram.ansiblepull</string>
<key>ProgramArguments</key>
<array>
<string>{{ workdir }}/ansible-pull.sh</string>
</array>
<key>StartInterval</key>
<integer>600</integer>
<key>RunAtLoad</key>
<true/>
<key>StandardOutPath</key>
<string>/var/ansible/log/ansiblepull.out</string>
<key>StandardErrorPath</key>
<string>/var/ansible/log/ansiblepull.err</string>
</dict>
</plist>
The path to git is /usr/local/bin/git.
Thanks in advance!
--
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/3cebd5b3-405e-4a4a-881e-f4abcb3543ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.