--- - block: - name: Add/remove a list of locales locale_gen: name={{ item.name }} state={{ item.state | default('present') }} with_items: '{{ deb_locales_list }}' - name: Set the default locale shell: update-locale LANG={{ deb_default_locale }} tags: locale