vn-ansible/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml

46 lines
954 B
YAML
Raw Normal View History

2023-10-13 11:24:56 +00:00
---
# change hostname
- name: change hostname
hostname:
name: "{{ hostname_name }}"
2023-10-13 11:26:22 +00:00
tags: set-hostname
2023-10-13 11:24:56 +00:00
# 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