2019-01-04 19:44:57 +01:00
|
|
|
---
|
|
|
|
|
2020-05-10 19:47:42 +02:00
|
|
|
- block:
|
|
|
|
- name: Protect non-pve systems
|
|
|
|
fail:
|
|
|
|
msg: 'Target system is not instance of Proxmox'
|
|
|
|
when: ansible_facts.cmdline.BOOT_IMAGE.find('-pve') == -1 or
|
|
|
|
ansible_virtualization_role != "host" # Catches lxc guests on pve kernel
|
2019-01-06 04:40:43 +01:00
|
|
|
|
2020-05-10 19:47:42 +02:00
|
|
|
- name: Configuring pve for unsubscribed operation
|
|
|
|
import_tasks: no-subscription.yml
|
|
|
|
when: not pve_subscription_key
|
2019-01-04 19:44:57 +01:00
|
|
|
|
2020-05-10 19:47:42 +02:00
|
|
|
- name: Configuring pve for licensed operation
|
|
|
|
import_tasks: enterprise.yml
|
|
|
|
when: pve_subscription_key
|
|
|
|
|
|
|
|
rescue:
|
|
|
|
- meta: noop
|