system-config/roles/exim/tasks/main.yaml
Ian Wienand 161906647b Replace skip with errors=ignore
Upstream deprecated "skip:" in preference of errors="ignore" [1].
Update playbooks to silence deprecation warning

[1] e17a2b502d

Change-Id: I72284f6ca8aaaa1ba5f94ad8e654d1b337ae762f
2020-01-16 22:34:09 +00:00

40 lines
832 B
YAML

- name: Include OS-specific variables
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files: "{{ distro_lookup_path }}"
paths:
- 'vars'
- name: Include OS-specific tasks
include_tasks: "{{ item }}"
vars:
params:
files: "{{ distro_lookup_path }}"
loop: "{{ query('first_found', params, errors='ignore') }}"
- name: Write Exim defaults file
template:
src: "{{ sysdefault_template }}"
dest: "{{ sysdefault_file }}"
mode: 0444
- name: Write /etc/aliases
template:
src: "aliases.j2"
dest: "/etc/aliases"
mode: 0444
- name: Write Exim config file
template:
src: "exim4.conf.j2"
dest: "{{ config_file }}"
mode: 0444
notify:
- Restart exim
- name: Enable exim
service:
name: "{{ exim_service_name }}"
enabled: true