Jan-Jonas Sämann
17eac6723b
This commit introduces a new inventory host variable: pve_enterprise=False If set to True, apt sources and environment on the target is configured for subscribed operation. If set to False annoying "subscribe me" popups are disabled and apt sources are configured to the no-subscription repositorys. The default value is False. Proxmox's default state after installation is similar to pve_enterprise=True. This Role must be called before first apt call.
18 lines
634 B
YAML
18 lines
634 B
YAML
---
|
|
|
|
- name: Unset no-subscription repo
|
|
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
|
|
|
|
- name: Removing previously installed pve-subscribe hook for cron
|
|
cron: name=pve-subscribe special_time=reboot job=/etc/cron.d/pve-subscribe state=absent
|
|
|
|
- name: Removing previously installed pve-subscribe hook for apt
|
|
file: path=/etc/apt/apt.conf.d/99pve-subscribe state=absent
|
|
|
|
- name: Removing previously installed pve-subscribe script
|
|
file: path=/usr/local/bin/pve-subscribe state=absent
|
|
|