Initial commit of exim collection
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
commit
8e9e00c15d
15 changed files with 317 additions and 0 deletions
48
roles/exim/tasks/main.yml
Normal file
48
roles/exim/tasks/main.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
- name: 'Install required software'
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
name: 'exim4-daemon-light'
|
||||
state: 'present'
|
||||
|
||||
- name: 'Deploy exim config config'
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'update-exim4.conf.conf.j2'
|
||||
dest: '/etc/exim4/update-exim4.conf.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: 'u=rw,g=r,o=r'
|
||||
notify:
|
||||
- 'Regenerate exim config'
|
||||
|
||||
- name: 'Deploy client password'
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'passwd.client.j2'
|
||||
dest: '/etc/exim4/passwd.client'
|
||||
owner: 'root'
|
||||
group: 'Debian-exim'
|
||||
mode: 'u=rw,g=r,o='
|
||||
notify:
|
||||
- 'Regenerate exim config'
|
||||
|
||||
- name: 'Deploy mail senders'
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'email-addresses.j2'
|
||||
dest: '/etc/email-addresses'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: 'u=rw,g=r,o=r'
|
||||
|
||||
- name: 'Deploy mail aliases'
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'aliases.j2'
|
||||
dest: '/etc/aliases'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: 'u=rw,g=r,o=r'
|
||||
notify:
|
||||
- 'Regenerate aliases'
|
Loading…
Add table
Add a link
Reference in a new issue