30 lines
583 B
YAML
30 lines
583 B
YAML
|
# 2023-09-25
|
||
|
# Tasks: locales
|
||
|
---
|
||
|
|
||
|
- ansible.builtin.include_vars: locales.yml
|
||
|
|
||
|
- name: Process default locale template
|
||
|
ansible.builtin.template:
|
||
|
src: "{{ locale_template }}"
|
||
|
dest: "{{ locale_template_distribution }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
when:
|
||
|
- ansible_facts['system'] == "Linux"
|
||
|
tags:
|
||
|
- system
|
||
|
- locales
|
||
|
- default
|
||
|
|
||
|
- name: Build locales
|
||
|
ansible.builtin.locale_gen:
|
||
|
name : "{{ item }}"
|
||
|
with_items: "{{ locales_selections }}"
|
||
|
when:
|
||
|
- ansible_facts['system'] == "Linux"
|
||
|
tags:
|
||
|
- system
|
||
|
- locales
|