- name: apply base configuration hosts: rspamd_servers,mail_servers,imap_servers roles: - role: common tags: common - name: configure rspamd hosts: rspamd_servers roles: - role: rspamd tags: rspamd - role: apache_vhost apache_default_vhost: yes apache_config: '{{ rspamd_apache_config }}' tags: apache - role: archive_job archive_name: rspamd archive_shell: '{{ rspamd_archive_shell }}' tags: archive - name: configure postfix hosts: mail_servers roles: - role: postfix_server tags: postfix,smtp - name: configure dovecot hosts: imap_servers roles: - role: dovecot tags: dovecot,imap - role: archive_job archive_name: dovecot archive_group: '{{ dovecot_vmail_user }}' archive_command: '{{ dovecot_archive_script }}' tags: archive