locale_gen -> community.general.locale_gen fixed. apt-proxy support added

This commit is contained in:
Denis Knauf 2024-09-19 21:07:46 +02:00
parent 3c9bc14f6b
commit cac45fa5fe

View file

@ -3,6 +3,23 @@
# pre dependencies:
- name: "aptitude should clean on install/upgrades"
copy:
dest: /etc/apt/apt.conf.d/99AutomaticClean
content: |
Aptitude::Clean-After-Install "{{if true == apt_clean_after_install || apt_proxy is defined then 'true' else 'false'}}";
owner: root
group: root
mode: 0644
- name: "Use proxy for apt http"
when: "apt_proxy is defined"
copy:
dest: /etc/apt/apt.conf.d/99proxy
content: |
Acquire::http { Proxy {{apt_proxy|quote()}}; }
owner: root
group: root
mode: 0644
- name: install packages
apt:
force: no
@ -152,7 +169,7 @@
- restart services
- name: generates locales
locale_gen:
community.general.locale_gen:
name: "{{item}}"
state: present
with_items: '{{locales}}'