2021-02-18 11:54:08 +01:00
|
|
|
---
|
2021-02-18 12:15:29 +01:00
|
|
|
- name: Perform versionscheck if enabled
|
|
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
2021-02-18 11:54:08 +01:00
|
|
|
when: submodules_versioncheck|bool
|
2021-02-18 12:15:29 +01:00
|
|
|
|
|
|
|
- name: Load a variable file based on OS Family
|
2021-02-18 12:23:51 +01:00
|
|
|
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
2021-02-18 12:15:29 +01:00
|
|
|
vars:
|
|
|
|
params:
|
|
|
|
files:
|
|
|
|
- "{{ ansible_os_family }}.yml"
|
|
|
|
- default.yml
|
|
|
|
paths:
|
|
|
|
- 'vars'
|
2021-02-18 12:23:51 +01:00
|
|
|
|
|
|
|
- name: exim4 installation
|
|
|
|
ansible.builtin.include_tasks: installation.yml
|
2021-02-18 16:53:12 +01:00
|
|
|
|
|
|
|
- name: exim4 configuration
|
|
|
|
ansible.builtin.include_tasks: configuration.yml
|
|
|
|
|
|
|
|
- name: systemctl start exim4
|
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "{{ exim4__daemon }}"
|
|
|
|
state: started
|