From 3815c3d32a147d5a4cba055940dd54ed34f49428 Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 15 Feb 2024 17:27:24 +0100 Subject: [PATCH] add conditional --- linux-config-server-type.yaml | 5 +++++ roles/config-server-type/tasks/main.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/linux-config-server-type.yaml b/linux-config-server-type.yaml index 8744e0f..cfe57cd 100644 --- a/linux-config-server-type.yaml +++ b/linux-config-server-type.yaml @@ -7,6 +7,11 @@ tasks: + - name: "[CONFIG SERVER TYPE] Comprobando si es necesario instalar guest side" + debug: + msg: "No es necesario instalar guest side en la máquina" + when: server-type_enabled is not defined or not server-type_enabled + - name: "[CONFIG SERVER TYPE] Install guest side" import_role: name: config-server-type diff --git a/roles/config-server-type/tasks/main.yaml b/roles/config-server-type/tasks/main.yaml index d44a7c9..17e354f 100644 --- a/roles/config-server-type/tasks/main.yaml +++ b/roles/config-server-type/tasks/main.yaml @@ -1,3 +1,8 @@ + +- name: "[CONFIG SERVER TYPE] Comprobando si es necesario instalar guest side" + meta: end_host + when: server-type_enabled is not defined or not server-type_enabled + #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # paso1 - Install guest-side qemu-system agent - name: Install guest-side qemu-system agent