Commit 220b1e81 authored by Chris Croome's avatar Chris Croome

Use https://git.coop/webarch/exim for exim role

parent df7dfa6d
......@@ -3,3 +3,8 @@
src: https://git.coop/webarch/docker.git
version: master
scm: git
- name: exim
src: https://git.coop/webarch/exim.git
version: master
scm: git
MAIN_TLS_ENABLE = true
MAIN_LOG_SELECTOR = +all
rfc1413_hosts = *
rfc1413_query_timeout = 30s
received_header_text = Received: ${if def:sender_rcvhost {from $sender_rcvhost\n\t}{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}{${if def:originator_uid {(uid=$originator_uid)\n\t}}}}}}by $primary_hostname ${if def:received_protocol {with $received_protocol}} ${if def:tls_cipher {($tls_cipher)\n\t}}(Exim $version_number)\n\t${if def:sender_address {(envelope-from <$sender_address>)\n\t}}id $message_exim_id${if def:received_for {\n\tfor $received_for}}
---
- name: Exim installed
apt:
name: exim4-daemon-light
state: present
update_cache: yes
- name: Exim configtype internet
lineinfile:
dest: /etc/exim4/update-exim4.conf.conf
regexp: '^dc_eximconfig_configtype'
line: "dc_eximconfig_configtype='internet'"
register: exim_configtype
- name: Exim use split config
lineinfile:
dest: /etc/exim4/update-exim4.conf.conf
regexp: '^dc_use_split_config'
line: "dc_use_split_config='true'"
register: exim_split_config
- name: Local Exim config in place
copy:
src: files/00_local
dest: /etc/exim4/conf.d/main/00_local
register: exim_local
- name: Exim TLS enabled
lineinfile:
state: present
dest: /etc/exim4/exim4.conf.template
regexp: '^MAIN_TLS_ENABLE\ =\ yes'
line: 'MAIN_TLS_ENABLE = yes'
insertbefore: '\.ifdef\ MAIN_TLS_ENABLE'
register: exim_tls
- name: Exim Reconfigured
command: "dpkg-reconfigure -f noninteractive exim4-config"
when: exim_configtype.changed or exim_split_config.changed or exim_local.changed or exim_tls.changed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment