Add default variable in role/pve-subscribe

A new inventory variable `pve_subcription_key` now controls wether the enterprise
or no-subscription package repository is used.
This commit is contained in:
Jan 2020-05-10 18:22:34 +02:00
parent edbfe7db71
commit 3a62659528
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
pve_subscription_key: Null

View File

@ -6,8 +6,8 @@
- name: Configuring pve for unsubscribed operation
import_tasks: no-subscription.yml
when: pve_enterprise | default(False) != True
when: pve_subscription_key | length == 0
- name: Configuring pve for licensed operation
import_tasks: enterprise.yml
when: pve_enterprise | default(False) == True
when: pve_subscription_key | length != 0