locale: lint
This commit is contained in:
20
roles/locale/tasks/main.yaml
Normal file
20
roles/locale/tasks/main.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Include variables for os family {{ ansible_os_family }}
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install locales package
|
||||
ansible.builtin.package:
|
||||
name: "{{ locale_package }}"
|
||||
when: locale_package | length > 0
|
||||
|
||||
- name: Generate locales
|
||||
community.general.locale_gen:
|
||||
name: "{{ item }}"
|
||||
loop: "{{ gen_locales }}"
|
||||
when: locale_gen
|
||||
|
||||
- name: Put default locale config in place
|
||||
ansible.builtin.template:
|
||||
src: locale.j2
|
||||
dest: "{{ locale_config }}"
|
||||
mode: '0644'
|
||||
Reference in New Issue
Block a user