diff --git a/roles/common/tasks/common.yml b/roles/common/tasks/common.yml index a40a36c..80b588e 100644 --- a/roles/common/tasks/common.yml +++ b/roles/common/tasks/common.yml @@ -1,32 +1,7 @@ - - name: LANG in '.profile' für root analog Locale setzen - tags: always - lineinfile: - path: /root/.profile - regexp: '^export LANG=en_US.UTF-8' - line: 'export LANG=en_US.UTF-8' - state: present - - - name: LANG in '.profile' für root analog Locale setzen - tags: always - lineinfile: - path: /root/.profile - regexp: '^export LANG=de_DE.UTF-8' - line: 'export LANG=de_DE.UTF-8' - state: present - - - name: LANG in '.profile' für Benutzer ansible analog Locale setzen - tags: always - lineinfile: - path: /home/ansible/.profile - regexp: '^export LANG=en_US.UTF-8' - line: 'export LANG=en_US.UTF-8' - state: present - - - - name: LANG in '.profile' für Benutzer ansible analog Locale setzen - tags: always - lineinfile: - path: /home/ansible/.profile - regexp: '^export LANG=de_DE.UTF-8' - line: 'export LANG=de_DE.UTF-8' - state: present + - name: ensure locales exist + locale_gen: + name: '{{ item }}' + state: present + loop: + - en_US.UTF-8 + - de_DE.UTF-8