feat: various fixes

This commit is contained in:
Simon Cornet 2025-07-11 19:25:53 +02:00
commit 89eaee1139
27 changed files with 47 additions and 74 deletions

View file

@ -2,7 +2,7 @@
# manage apt sources
- name: "manage apt sources"
tags: ["apt"]
tags: "apt"
block:
# configure apt sources
@ -13,10 +13,10 @@
owner: "root"
group: "root"
mode: "0644"
notify: "apt force cache update"
when:
- 'ansible_os_family == "Debian"'
- 'ansible_distribution_major_version <= "23"'
notify: "apt force cache update"
# configure apt sources - proxmox list
- name: "apt - config - configure apt sources - proxmox list"
@ -26,10 +26,10 @@
owner: "root"
group: "root"
mode: "0644"
notify: "apt force cache update"
when:
- 'ansible_os_family == "Debian"'
- "inventory_hostname in groups['proxmox']"
notify: "apt force cache update"
# configure apt sources
- name: "apt - config - configure apt sources"
@ -39,10 +39,10 @@
owner: "root"
group: "root"
mode: "0644"
notify: "apt force cache update"
when:
- 'ansible_distribution == "Ubuntu"'
- 'ansible_distribution_major_version >= "24"'
notify: "apt force cache update"
# delete unused sources.list
- name: "apt - config - remove old sources.list"