variabilized proxmox installation

This commit is contained in:
2024-03-26 19:50:25 +01:00
parent 19ca98b90b
commit 99b5e5a46e
2 changed files with 7 additions and 5 deletions

View File

@@ -8,6 +8,8 @@
- import_tasks: tasks/debian-general/hostname.yml
- import_tasks: tasks/debian-general/hosts-file.yml
- import_tasks: tasks/debian-general/repositories-bullseye.yml
when: ansible_facts.lsb.codename == "bullseye"
- import_tasks: tasks/debian-general/repositories-bookworm.yml
when: ansible_facts.lsb.codename == "bookworm"
- import_tasks: tasks/debian-to-pve/repositories.yml
- import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/debian-to-pve/pve-server.yml

View File

@@ -3,13 +3,13 @@
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pve-enterprise.list
content: |
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
#deb https://enterprise.proxmox.com/debian/pve {{ ansible_facts.lsb.codename }} pve-enterprise
- name: Ensure the correct Proxmox repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pve-no-subscription.list
content: |
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
deb http://download.proxmox.com/debian/pve {{ ansible_facts.lsb.codename }} pve-no-subscription
- name: Ensure the Proxmox signing GPG key is present
ansible.builtin.get_url:
dest: /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg
dest: /etc/apt/trusted.gpg.d/proxmox-release-{{ ansible_facts.lsb.codename }}.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-{{ ansible_facts.lsb.codename }}.gpg