Dynamic os-release while deploy dependend apt-sources
This commit is contained in:
parent
6c0156850b
commit
edbfe7db71
@ -1 +0,0 @@
|
||||
deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
|
@ -1 +0,0 @@
|
||||
deb http://download.proxmox.com/debian stretch pve-no-subscription
|
@ -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
|
||||
|
@ -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
|
||||
|
1
roles/pve-subscribe/templates/pve-enterprise.list.j2
Normal file
1
roles/pve-subscribe/templates/pve-enterprise.list.j2
Normal file
@ -0,0 +1 @@
|
||||
deb https://enterprise.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-enterprise
|
@ -0,0 +1 @@
|
||||
deb http://download.proxmox.com/debian {{ ansible_distribution_release }} pve-no-subscription
|
Loading…
Reference in New Issue
Block a user