From 106330958bfe0eb79999eb67bfcd485ab7103ff9 Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 15 Feb 2024 11:49:06 +0100 Subject: [PATCH] add conditional --- roles/config-update-and-upgrade-packages/tasks/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/config-update-and-upgrade-packages/tasks/main.yaml b/roles/config-update-and-upgrade-packages/tasks/main.yaml index 05699f7..60e4e67 100644 --- a/roles/config-update-and-upgrade-packages/tasks/main.yaml +++ b/roles/config-update-and-upgrade-packages/tasks/main.yaml @@ -1,5 +1,9 @@ --- +- name: "[CONFIG UPDATE] Comprobando si es necesario realizar update " + meta: end_host + when: update_enabled is not defined or not update_enabled + # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # step1 - run apt-get update - name: update index of all packages