make dbus available to mailsync service

This may be needed if imap/smtp passwords are stored in gnome-keyring or
somesuch.
This commit is contained in:
Pig Monkey 2016-02-16 21:41:27 -08:00
parent 50e5c72d74
commit 8a807a336c
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
- mailsync
- name: Push mailsync service file
copy: src=mailsync.service dest=/etc/systemd/system/mailsync@.service
template: src=mailsync.service.j2 dest=/etc/systemd/system/mailsync@.service
tags:
- mailsync
notify:

View file

@ -8,3 +8,4 @@ ExecStart=/usr/local/bin/mailsync
User=%i
StandardOutput=syslog
StandardError=syslog
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/{{ user.uid }}/bus