Skip to content

Instantly share code, notes, and snippets.

@jrtaylor-com
Created December 24, 2015 18:28
Show Gist options
  • Save jrtaylor-com/446c6feeb8b344a92b91 to your computer and use it in GitHub Desktop.
Save jrtaylor-com/446c6feeb8b344a92b91 to your computer and use it in GitHub Desktop.
OS X Launchd plist to run Ansible job
<?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>local.mouse.ipcam.job</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ansible-playbook</string>
<string>-i</string>
<string>/Users/Mouse/ansible_hosts</string>
<string>/Users/Mouse/ipcam.yml</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>180</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment