Dynamic os-release while deploy dependend apt-sources

This commit is contained in:
Jan 2020-05-10 17:43:18 +02:00
parent 6c0156850b
commit edbfe7db71
6 changed files with 4 additions and 4 deletions

View File

@ -1 +0,0 @@
deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

View File

@ -1 +0,0 @@
deb http://download.proxmox.com/debian stretch pve-no-subscription

View File

@ -4,7 +4,7 @@
file: path=/etc/apt/sources.list.d/pve-no-subscription.list state=absent
- name: Configuring enterprise repo
copy: src=pve-enterprise.list dest=/etc/apt/sources.list.d/pve-enterprise.list
template: src=pve-enterprise.list.j2 dest=/etc/apt/sources.list.d/pve-enterprise.list
- name: Removing previously installed pve-subscribe hook for cron
cron: name=pve-subscribe special_time=reboot job=/etc/cron.d/pve-subscribe state=absent

View File

@ -4,7 +4,7 @@
file: path=/etc/apt/sources.list.d/pve-enterprise.list state=absent
- name: Configuring no-subscription repo
copy: src=pve-no-subscription.list dest=/etc/apt/sources.list.d/pve-no-subscription.list
template: src=pve-no-subscription.list.j2 dest=/etc/apt/sources.list.d/pve-no-subscription.list
- name: Installing pve-subscribe script
copy: src=pve-subscribe dest=/usr/local/bin/pve-subscribe mode=0755 owner=root

View File

@ -0,0 +1 @@
deb https://enterprise.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-enterprise

View File

@ -0,0 +1 @@
deb http://download.proxmox.com/debian {{ ansible_distribution_release }} pve-no-subscription