Fix ansible_distribution logic
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: set locales
|
||||
locale_gen: name="{{ item.name }}" state="{{ item.state | default('present') }}"
|
||||
locale_gen: "name={{ item.name }} state={{ item.state | default('present') }}"
|
||||
with_items: "{{ common_locales }}"
|
||||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||
|
||||
- name: set default locale
|
||||
lineinfile: dest="/etc/default/locale" regexp="LANG=" line="LANG={{ common_locales_default }}"
|
||||
lineinfile: "dest=/etc/default/locale regexp=LANG= line=LANG={{ common_locales_default }}"
|
||||
when: common_locales_default and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')
|
||||
|
||||
Reference in New Issue
Block a user