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

exim4 installation

This commit is contained in:
L3D 2021-02-18 12:23:51 +01:00
parent ddbc0d89c6
commit 8ce7b323fa
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 18 additions and 1 deletions

14
tasks/installation.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: Update apt cache
become: true
ansible.builtin.apt:
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
- name: install exim4
become: true
ansible.builtin.package:
name: "{{ exim4__package }}"
state: "{{ exim4__state }}"

View file

@ -4,7 +4,7 @@
when: submodules_versioncheck|bool
- name: Load a variable file based on OS Family
include_vars: "{{ lookup('first_found', params) }}"
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
@ -12,3 +12,6 @@
- default.yml
paths:
- 'vars'
- name: exim4 installation
ansible.builtin.include_tasks: installation.yml