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:
parent
ddbc0d89c6
commit
8ce7b323fa
2 changed files with 18 additions and 1 deletions
14
tasks/installation.yml
Normal file
14
tasks/installation.yml
Normal 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 }}"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue