From 0b20715fbdf90ee282a12c7713d2cf94c33fdbc5 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 2 Jun 2025 12:25:30 +0200 Subject: [PATCH] feat: add proxmox sources --- tasks/apt/sources.yaml | 13 +++++++++++++ templates/apt/sources.d/proxmox.list.j2 | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 templates/apt/sources.d/proxmox.list.j2 diff --git a/tasks/apt/sources.yaml b/tasks/apt/sources.yaml index 84eb609..77603d8 100644 --- a/tasks/apt/sources.yaml +++ b/tasks/apt/sources.yaml @@ -18,6 +18,19 @@ - 'ansible_distribution_major_version <= "23"' notify: "apt force cache update" + # configure apt sources - proxmox list + - name: "apt - config - configure apt sources - proxmox list" + ansible.builtin.template: + src: "templates/apt/sources.d/proxmox.list.j2" + dest: "/etc/apt/sources.list.d/proxmox.list" + owner: "root" + group: "root" + mode: "0644" + when: + - 'ansible_os_family == "Debian"' + - "inventory_hostname in group['proxmox']" + notify: "apt force cache update" + # configure apt sources - name: "apt - config - configure apt sources" ansible.builtin.template: diff --git a/templates/apt/sources.d/proxmox.list.j2 b/templates/apt/sources.d/proxmox.list.j2 new file mode 100644 index 0000000..ff0e1e9 --- /dev/null +++ b/templates/apt/sources.d/proxmox.list.j2 @@ -0,0 +1,2 @@ +# proxmox +deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription