locales-generated
Description
Generate a list of locales on a system.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
list | -- | A list of locales. Required |
Code
doc: short_help: Ensure a set of locales is generated on a system. help: | Generate a list of locales on a system. args: locales: doc: short_help: A list of locales. type: list schema: type: string # default: # - en_US.UTF-8 empty: true cli: param_type: argument nargs: -1 meta: elevated: true frecklets: - frecklet: type: ansible-module name: locale_gen properties: idempotent: true elevated: true internet: false desc: references: "'locale_gen' Ansible module": https://docs.ansible.com/ansible/latest/modules/locale_gen_module.html task: become: true loop: '{{:: locales ::}}' loop_control: loop_var: __locale_item__ vars: name: '{{ __locale_item__ }}' state: present
frecklecute locales-generated --help Usage: frecklecute locales-generated [OPTIONS] LOCALES Generate a list of locales on a system. Options: --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.locales_generated.LocalesGenerated # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class LocalesGenerated(AutoPycklet): """Generate a list of locales on a system. Args: locales: A list of locales. """ FRECKLET_ID = "locales-generated" locales: List = None def __post_init__(self): super(LocalesGenerated, self).__init__(var_names=["locales"]) frecklet_class = LocalesGenerated
# -*- coding: utf-8 -*- # # module path: pycklets.locales_generated.LocalesGenerated # from pyckles import AutoPycklet class LocalesGenerated(AutoPycklet): """Generate a list of locales on a system. Args: locales: A list of locales. """ FRECKLET_ID = "locales-generated" def __init__(self, locales=None): super(LocalesGenerated, self).__init__(var_names=["locales"]) self._locales = locales @property def locales(self): return self._locales @locales.setter def locales(self, locales): self._locales = locales frecklet_class = LocalesGenerated