1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_exim4.git synced 2024-08-16 10:09:49 +02:00
ansible_role_exim4/tasks/main.yml

27 lines
658 B
YAML
Raw Permalink Normal View History

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