parent
4181ca6030
commit
429829f28f
@ -1,9 +1,16 @@ |
|||||||
--- |
--- |
||||||
- name: get timezone via timedatectl |
- name: get timezone via timedatectl |
||||||
shell: timedatectl | grep "Time zone" | cut -d: -f2 | cut -d'(' -f1 | sed -Ee 's/(^ *| *$)//g' |
shell: "timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d'(' -f1 | sed -Ee 's/(^ *| *$)//g'" |
||||||
register: linux_tz |
register: linux_tz |
||||||
changed_when: False |
changed_when: False |
||||||
|
|
||||||
|
- name: get locale |
||||||
|
shell: "locale | grep ^LANG | cut -d= -f2" |
||||||
|
register: linux_locale |
||||||
|
changed_when: False |
||||||
|
|
||||||
|
|
||||||
- name: set linux-config facts |
- name: set linux-config facts |
||||||
set_fact: |
set_fact: |
||||||
linux_tz: linux_tz.stdout |
linux_tz: "{{ linux_tz.stdout }}" |
||||||
|
linux_locale: "{{ linux_locale.stdout }}" |
||||||
|
Loading…
Reference in new issue