test community.general modules

This commit is contained in:
Ruben Blanco 2023-10-27 13:03:49 +02:00
parent 879a5a3d8b
commit d298c8ac97
1 changed files with 45 additions and 29 deletions

View File

@ -1,33 +1,5 @@
---
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# 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
debconf:
name: tzdata
question: "{{ item.question }}"
value: "{{ item.value }}"
vtype: select
with_items:
- question: "tzdata/Zones/Europe"
value: "Madrid"
- question: "tzdata/Areas"
value: "Europe"
- question: "tzdata/Zones/Etc"
value: "UTC"
notify: update timezone
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# update packages
- name: update packages
@ -49,7 +21,7 @@
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# install packages
- name: install some packages (vim htop psmisc aptitude)
- name: install some packages
apt:
name: "{{ item }}"
state: present
@ -66,6 +38,50 @@
- rsyslog
# - iptables
- mlocate
- task-spanish
- locales-all
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# DONT WORK BECAUSE THIS TASK ONLY CONFIGURE DEB PACKAGE , it needs to apply reconfigure , but dont works :(
# 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
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# !!! WE NEED ANSIBLE COLLECTIONS community.general to use this module 'locale_gen'
- name: reconfigure locales enable es_ES.UTF-8
locale_gen:
name: es_ES.UTF-8
state: present
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# DONT WORK BECAUSE THIS TASK ONLY CONFIGURE DEB PACKAGE , it needs to apply reconfigure , but dont works :(
# Reconfigure timezone - Europe/Madrid
#- name: reconfigure timezone Europe/Madrid
# debconf:
# name: tzdata
# question: "{{ item.question }}"
# value: "{{ item.value }}"
# vtype: select
# with_items:
# - question: "tzdata/Zones/Europe"
# value: "Madrid"
# - question: "tzdata/Areas"
# value: "Europe"
# - question: "tzdata/Zones/Etc"
# value: "UTC"
# notify: update timezone
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# !!! WE NEED ANSIBLE COLLECTIONS community.general to use this module 'timezone'
- name: reconfigure timezone to Europe/Madrid
timezone:
hwclock: "UTC"
name: "Europe/Madrid"
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++