community / community.general / 8.5.0 / module / locale_gen Creates or removes locales Authors: Augustus Kling (@AugustusKling)community.general.locale_gen (8.5.0) — module
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
Manages locales by editing /etc/locale.gen and invoking locale-gen.
- name: Ensure a locale exists community.general.locale_gen: name: de_CH.UTF-8 state: present
name: description: - Name and encoding of the locale, such as "en_GB.UTF-8". required: true type: str state: choices: - absent - present default: present description: - Whether the locale shall be present. type: str