dudefellah.mbsync
MBSync
This role is designed to help you manage mbsync installations and settings easily. If you need to handle your user accounts and access to mail, this could be helpful.
Requirements
No requirements.
Role Variables
All settings are listed and explained in defaults/main.yml.
This role is meant to be used for a user account, so you need to provide real values for mbsync_user
and mbsync_group
. If the user you enter doesn't exist, the role will not work.
Dependencies
No dependencies.
Example Playbook
Here's an example of how to use this role (with variables you can set):
- hosts: myworkstations
roles:
- role: dudefellah.mbsync
mbsync_user: dudefellah
mbsync_group: dudefellah
mbsync_mbsyncrc_content: |
# {{ ansible_managed }}
Expunge None
MaildirStore local
Path ~/Mail/
Subfolders Verbatim
IMAPStore myemail
Host imap.myemail.com
User [email protected]
PassCmd "sed -n -e 's,^machine imap\\.myemail\\.com login [email protected] password \\(.*\\),\\1,p' < $HOME/.netrc"
Channel myemail
Master :myemail:
Slave :local:
Expunge Slave
Sync Pull All
Patterns *
License
GPLv2+
Author Information
Dan Thomson - https://github.com/dudefellah