e8716e742e
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
40 lines
832 B
YAML
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
|