From 0c0022641e4b0127cfe7a45b3c3db7aa7046f24a Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 15 Feb 2024 18:37:19 +0100 Subject: [PATCH] with underscore --- linux-config-root-user.yaml | 4 ++-- roles/config-root-user/tasks/main.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-config-root-user.yaml b/linux-config-root-user.yaml index 83f1331..41165b9 100644 --- a/linux-config-root-user.yaml +++ b/linux-config-root-user.yaml @@ -10,9 +10,9 @@ - name: "[CONFIG ROOT USER] Comprobando si es necesario configurar SSH root user" debug: msg: "No es necesario configurar SSH root user en la máquina" - when: root-user_enabled is not defined or not root-user_enabled + when: root_user_enabled is not defined or not root_user_enabled - name: "[CONFIG ROOT USER] Configure SSH root user" import_role: name: config-root-user - when: root-user_enabled is defined and root-user_enabled + when: root_user_enabled is defined and root_user_enabled diff --git a/roles/config-root-user/tasks/main.yaml b/roles/config-root-user/tasks/main.yaml index 79b9aa7..6ad341d 100644 --- a/roles/config-root-user/tasks/main.yaml +++ b/roles/config-root-user/tasks/main.yaml @@ -2,7 +2,7 @@ - name: "[CONFIG ROOT USER] Comprobando si es necesario configurar SSH root user" meta: end_host - when: root-user_enabled is not defined or not root-user_enabled + when: root_user_enabled is not defined or not root_user_enabled #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # delete default user , only on VM