locale_gen -> community.general.locale_gen fixed. apt-proxy support added
This commit is contained in:
parent
3c9bc14f6b
commit
cac45fa5fe
1 changed files with 18 additions and 1 deletions
|
@ -3,6 +3,23 @@
|
||||||
|
|
||||||
# pre dependencies:
|
# 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
|
- name: install packages
|
||||||
apt:
|
apt:
|
||||||
force: no
|
force: no
|
||||||
|
@ -152,7 +169,7 @@
|
||||||
- restart services
|
- restart services
|
||||||
|
|
||||||
- name: generates locales
|
- name: generates locales
|
||||||
locale_gen:
|
community.general.locale_gen:
|
||||||
name: "{{item}}"
|
name: "{{item}}"
|
||||||
state: present
|
state: present
|
||||||
with_items: '{{locales}}'
|
with_items: '{{locales}}'
|
||||||
|
|
Loading…
Reference in a new issue