From ff7aa5cdb40e4ffebff2163ef457214b96cd1119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Jonas=20S=C3=A4mann?= Date: Sun, 6 Jan 2019 04:40:43 +0100 Subject: [PATCH] Added distro check Abort processing if target does not seem to be a Proxmox box --- roles/pve-subscribe/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/pve-subscribe/tasks/main.yml b/roles/pve-subscribe/tasks/main.yml index 9f1452f..625917f 100644 --- a/roles/pve-subscribe/tasks/main.yml +++ b/roles/pve-subscribe/tasks/main.yml @@ -1,5 +1,9 @@ --- +- 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_enterprise | default(False) != True