vh-ansible/roles/pve-subscribe/tasks/main.yml
Jan-Jonas Sämann 3a62659528 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.
2020-05-10 18:22:34 +02:00

14 lines
457 B
YAML

---
- name: Assert incompatible target
fail: msg="Target doesn't look like a Proxmox instance. Proceeding would cause damage to the target."
when: ansible_facts.cmdline.BOOT_IMAGE.find('-pve') == -1
- name: Configuring pve for unsubscribed operation
import_tasks: no-subscription.yml
when: pve_subscription_key | length == 0
- name: Configuring pve for licensed operation
import_tasks: enterprise.yml
when: pve_subscription_key | length != 0