install and config exim4
This commit is contained in:
parent
333cb7ce67
commit
83303905f8
|
@ -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
|
Loading…
Reference in New Issue