--- # vars file for ensure_dovecot package_list: - name: 'dovecot' state: 'present' - name: 'dovecot-fts-xapian' state: 'present' - name: 'dovecot-mysql' state: 'present' - name: 'dovecot-pigeonhole' state: 'present' firewall_list: - permanent: 'yes' service: 'imap' state: 'enabled' - permanent: 'yes' service: 'imaps' state: 'enabled' service_list: - enabled: 'yes' name: 'dovecot.service' state: 'started' - enabled: 'yes' name: 'dovecot-copytls.service' state: 'started' - enabled: 'yes' name: 'dovecot-copytls.timer' state: 'started' template_list: - dest: '/etc/dovecot/dovecot.conf' src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/dovecot.conf' - dest: '/etc/dovecot/conf.d/local.conf' src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/conf.d/local.conf' - dest: '/etc/dovecot/accounts' group: 'dovecot' mode: '0600' owner: 'dovecot' src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/accounts' - dest: '/usr/lib/systemd/system/dovecot-copytls.service' src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.service' - dest: '/usr/lib/systemd/system/dovecot-copytls.timer' src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.timer' ...