From 8f0f082139741ab4fc0756e769c1ebe85ab3fee2 Mon Sep 17 00:00:00 2001 From: shirenn <shirenn@crans.org> Date: Thu, 6 Aug 2020 15:54:17 +0200 Subject: [PATCH] [proxmox] Role for proxmox repositories --- roles/proxmox-apt-sources/tasks/main.yml | 5 +++++ .../templates/apt/sources.list.d/sources.list.j2 | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 roles/proxmox-apt-sources/tasks/main.yml create mode 100644 roles/proxmox-apt-sources/templates/apt/sources.list.d/sources.list.j2 diff --git a/roles/proxmox-apt-sources/tasks/main.yml b/roles/proxmox-apt-sources/tasks/main.yml new file mode 100644 index 00000000..4d66e393 --- /dev/null +++ b/roles/proxmox-apt-sources/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Configure Proxmox repositories + template: + src: apt/sources.list.d/pve-entreprise.list.j2 + dest: /etc/apt/sources.list.d/pve-entreprise.list diff --git a/roles/proxmox-apt-sources/templates/apt/sources.list.d/sources.list.j2 b/roles/proxmox-apt-sources/templates/apt/sources.list.d/sources.list.j2 new file mode 100644 index 00000000..f1a09d1d --- /dev/null +++ b/roles/proxmox-apt-sources/templates/apt/sources.list.d/sources.list.j2 @@ -0,0 +1,2 @@ +{{ ansible_header | comment }} +deb http://download.proxmox.com/debian/pve {{ ansible_lsb.codename }} pve-no-subscription -- GitLab