install and config exim4

This commit is contained in:
Ruben Blanco 2023-10-13 13:24:56 +02:00
parent 333cb7ce67
commit 83303905f8
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
---
# change hostname
- name: change hostname
hostname:
name: "{{ hostname_name }}"
tags: X
# Reconfigure locales - enable en_US-UTF8 and es_ES-UTF8
- name: reconfigure locales enable en_US-UTF8 and es_ES-UTF8
debconf:
name: locales
question: locales/default_environment_locale
value: en_US-UTF8, es_ES-UTF8
vtype: multiselect
# Reconfigure timezone - Europe/Madrid
- name: reconfigure timezone Europe/Madrid
timezone:
name: Europe/Madrid
# update packages
- name: update packages
apt:
name: "*"
state: latest
# upgrade packages
- name: upgrade packages
apt:
upgrade: dist
state: latest
# install exim4
- name: install exim4
apt:
name: exim4
state: present
# Reconfigure relayhost smtp to smtp.verdnatura.es
- name: reconfigure relayhost to smtp.verdnatura.es
debconf:
name: exim4-config
question: exim4/dc_smarthost
value: smtp.verdnatura.es
vtype: string