ansible-imapfilter-gmail_clean is an Ansible role to install and configure imapfilter on a debian based OS to clean gmail trash and spam folders.
It performs:
- installation of imapfilter package
- creation of dedicated user and group for imapfilter runs
- creation of dedicated folder for imapfilter configurations and logs
- configuration of gmail account to be cleaned
- installation, start and enable of a dedicated systemd unit
git clone https://github.com/lgaggini/ansible-imapfilter-gmail_clean.git
The configuration is done by vars listed and explained in defaults/main.yml file.
- name: bootstrap an ubuntu cloud image for imapfilter
hosts: imapfiltterserver
vars_files:
- group_vars/imapfilter.yml
roles:
- { role: imapfilter, tags: ['imapfilter'] }