From fdae9670e10ac4ea8698a5da039aa3eecc237352 Mon Sep 17 00:00:00 2001 From: rubenb Date: Fri, 27 Oct 2023 14:51:00 +0200 Subject: [PATCH] set locales role --- roles/config-locales/files/set_locales.sh | 4 ++++ roles/config-locales/tasks/main.yaml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 roles/config-locales/files/set_locales.sh create mode 100644 roles/config-locales/tasks/main.yaml diff --git a/roles/config-locales/files/set_locales.sh b/roles/config-locales/files/set_locales.sh new file mode 100644 index 0000000..9687141 --- /dev/null +++ b/roles/config-locales/files/set_locales.sh @@ -0,0 +1,4 @@ +#!/bin/bash +echo "es_ES.UTF-8 UTF-8" > /etc/locale.gen +locale-gen +update-locale LANG=es_ES.UTF-8 \ No newline at end of file diff --git a/roles/config-locales/tasks/main.yaml b/roles/config-locales/tasks/main.yaml new file mode 100644 index 0000000..46da77f --- /dev/null +++ b/roles/config-locales/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: execute script set_locales.sh + script: set_locales.sh \ No newline at end of file