From cac45fa5fe44e124bc10e38465a0acfc7b803851 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Thu, 19 Sep 2024 21:07:46 +0200 Subject: [PATCH] locale_gen -> community.general.locale_gen fixed. apt-proxy support added --- tasks/os-debian.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tasks/os-debian.yml b/tasks/os-debian.yml index 3b94375..b794330 100644 --- a/tasks/os-debian.yml +++ b/tasks/os-debian.yml @@ -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}}'