system-config/playbooks/roles/base/exim/tasks/main.yaml
Monty Taylor e8716e742e Move base roles into a base subdir
If we move these into a subdir, it cleans up the number of things
we nave to files match on.

Stop running disable-puppet-agent in base. We run it in run-puppet
which should be fine.

Change-Id: Ia16adb96b11d25a097490882c4c59a50a0b7b23d
2020-05-27 16:28:37 -05: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