From fbdfc427c23976ef9ca53a43eea1fdb577c153de Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 19 Jul 2019 21:14:57 +0300 Subject: [PATCH] Fix(debian/init-system): Ignore error from `grep` `grep` returns an error even if we only ask for count. --- playbooks/debian/roles/init-system/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/debian/roles/init-system/tasks/main.yml b/playbooks/debian/roles/init-system/tasks/main.yml index 0e1db28..3159aaa 100644 --- a/playbooks/debian/roles/init-system/tasks/main.yml +++ b/playbooks/debian/roles/init-system/tasks/main.yml @@ -31,7 +31,7 @@ when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')" - name: Check locales - command: grep -c '^ru_RU.KOI8-R' /etc/locale.gen + shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :" register: has_locales - debug: msg: "Creating and regenerating locales..." -- 2.39.5