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/installation.yml

22 lines
458 B
YAML
Raw Normal View History

2021-02-18 12:23:51 +01:00
---
- 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 }}"
2021-02-18 17:16:14 +01:00
- name: install mailx
become: true
ansible.builtin.package:
name: "{{ exim4__mailx_package }}"
state: "{{ exim4__state }}"
when: exim4__install_mailx | bool