de.lehmann.automation.ansib.../roles/common/tasks/common.yml
2024-04-16 11:17:23 +02:00

41 lines
782 B
YAML

- name: Show host
tags: always
shell: echo $HOST
- name: Show locales
tags: always
shell: locale -a
- name: Generate en_US.UTF-8
tags: always
shell: echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
- name: Generate de_DE.UTF-8
tags: always
shell: echo 'de_DE.UTF-8 UTF-8' >> /etc/locale.gen
- name: Locale Gen
tags: always
shell: locale-gen
- name: Set default
tags: always
shell: echo 'LANG=en_US.UTF-8' > /etc/locale.conf
- name: ensure locales exist
locale_gen:
name: '{{ item }}'
state: present
loop:
- en_US.UTF-8
- de_DE.UTF-8
- name: Neustart (nach 5 Sekunden)
tags: always
reboot:
pre_reboot_delay: 5
- name: Show locales
tags: always
shell: locale -a