From c4e5d7262c7d73d0e304d726ae1f500c256504fc Mon Sep 17 00:00:00 2001 From: Tommaso Piccioli Date: Tue, 26 Oct 2021 19:24:08 +0200 Subject: [PATCH] Update 'tasks/locale.yml' Only one command to have both parameters in /etc/default/locale --- tasks/locale.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tasks/locale.yml b/tasks/locale.yml index f1b5760..b5ca258 100644 --- a/tasks/locale.yml +++ b/tasks/locale.yml @@ -19,10 +19,7 @@ register: localectl_executable - name: Set the default locale - command: localectl set-locale "{{ item }}" - with_items: - - 'LANG={{ default_locale_lang }}' - - 'LC_MESSAGES={{ default_deb_locale_messages }}' + command: localectl set-locale 'LANG={{ default_locale_lang }}' 'LC_MESSAGES={{ default_deb_locale_messages }}' when: - localectl_executable.stat.exists | bool - ansible_distribution_file_variety == "Debian"