feat ✨: Setup APT translations and use IPv4 #28
@@ -25,3 +25,9 @@ proxmox_logrotate_notifempty: true
|
||||
|
||||
# Destination override file
|
||||
proxmox_logrotate_file: /etc/logrotate.d/99-proxmox-custom
|
||||
|
||||
# Default languages for APT translations
|
||||
proxmox_apt_languages:
|
||||
- "en"
|
||||
- "es"
|
||||
- "it"
|
||||
|
|
||||
|
||||
31
tasks/apt.yml
Normal file
31
tasks/apt.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
# -------------------------------------------------
|
||||
# Reduce apt translation downloads (use defaults)
|
||||
# -------------------------------------------------
|
||||
- name: apt | 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: apt | 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: apt | Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
@@ -16,6 +16,9 @@
|
||||
# Other tasks
|
||||
# ===================
|
||||
|
||||
- name: Configure apt
|
||||
ansible.builtin.import_tasks: apt.yml
|
||||
|
||||
- name: Disable enterprise repo, enable no-subscription
|
||||
ansible.builtin.import_tasks: repos.yml
|
||||
|
||||
|
gitea-actions
commented
[Lines 19-24] [Score: 3] Mixing roles/tasks with imports can lead to code duplication and reduced maintainability if the tasks are needed in multiple places. Consider organizing these tasks into separate role files instead for better modularity. [Lines 19-24] [Score: 3] Mixing roles/tasks with imports can lead to code duplication and reduced maintainability if the tasks are needed in multiple places. Consider organizing these tasks into separate role files instead for better modularity.
|
||||
|
||||
Reference in New Issue
Block a user
[Lines 25-33] [Score: 3] Addition of a best practice for internationalization purposes.