Role server-basic: add locale setting
This commit is contained in:
parent
9d08803a9e
commit
7a482e195f
3 changed files with 14 additions and 1 deletions
|
@ -3,9 +3,11 @@
|
|||
Diese Ansible role installiert Pakete, die auf allen MWU-Server benötigt werden.
|
||||
|
||||
- installiert Pakete, die auf allen Servern benötigt werden
|
||||
- setzt als default Editor
|
||||
- setzt vim als default Editor
|
||||
- setzt die Zeitzone auf Europe/Berlin
|
||||
- generiert und setzt default locale
|
||||
|
||||
## Benötigte Variablen
|
||||
|
||||
- Liste `packages` (Rollen Variable)
|
||||
- Variable `default_locale` (Rollen-Variable)
|
||||
|
|
|
@ -10,6 +10,15 @@
|
|||
name: editor
|
||||
path: /usr/bin/vim.basic
|
||||
|
||||
- name: ensure default locale is installed
|
||||
locale_gen:
|
||||
name: "{{ default_locale }}"
|
||||
state: present
|
||||
|
||||
- name: ensure default locale is set
|
||||
command: "/usr/bin/localectl set-locale LANG={{ default_locale }}"
|
||||
changed_when: false
|
||||
|
||||
- name: set timezone to Europe/Berlin
|
||||
timezone:
|
||||
name: Europe/Berlin
|
||||
|
|
|
@ -11,3 +11,5 @@ packages:
|
|||
- sudo
|
||||
- sysfsutils
|
||||
- vim
|
||||
|
||||
default_locale: "en_US.UTF-8"
|
||||
|
|
Loading…
Reference in a new issue