Fixes errors when running in check mode
This commit is contained in:
parent
59e838a3e4
commit
5846aa9d74
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
- name: Extract LANG from current locale configuration
|
||||
set_fact:
|
||||
locale_lang: "{{ locale_status.stdout | regex_search('LANG=([^\n]+)', '\\1') | first }}"
|
||||
when: local_status.stdout is defined
|
||||
when: not ansible_check_mode
|
||||
|
||||
- debug:
|
||||
var: locale_lang
|
||||
|
@ -21,5 +21,5 @@
|
|||
- name: Set default locale
|
||||
command: localectl set-locale LANG={{ locales_default }}
|
||||
when:
|
||||
- locale_lang is defined
|
||||
- not ansible_check_mode
|
||||
- locale_lang != locales_default
|
Loading…
Add table
Reference in a new issue