32 lines
859 B
YAML
32 lines
859 B
YAML
|
|
---
|
||
|
|
# -------------------------------------------------
|
||
|
|
# Reduce apt translation downloads (use defaults)
|
||
|
|
# -------------------------------------------------
|
||
|
|
- name: Configure APT translations using default languages
|
||
|
|
ansible.builtin.copy:
|
||
|
|
dest: /etc/apt/apt.conf.d/99-languages
|
||
|
|
content: |
|
||
|
|
Acquire::Languages {
|
||
|
|
{% for lang in proxmox_apt_languages %}
|
||
|
|
"{{ lang }}";
|
||
|
|
{% endfor %}
|
||
|
|
};
|
||
|
|
owner: root
|
||
|
|
group: root
|
||
|
|
mode: '0644'
|
||
|
|
|
||
|
|
# -------------------------------------------------
|
||
|
|
# Force APT to use IPv4
|
||
|
|
# -------------------------------------------------
|
||
|
|
- name: Force APT to use IPv4
|
||
|
|
ansible.builtin.copy:
|
||
|
|
dest: /etc/apt/apt.conf.d/99force-ipv4
|
||
|
|
content: 'Acquire::ForceIPv4 "true";'
|
||
|
|
owner: root
|
||
|
|
group: root
|
||
|
|
mode: '0644'
|
||
|
|
|
||
|
|
- name: Update apt cache
|
||
|
|
ansible.builtin.apt:
|
||
|
|
update_cache: yes
|