From 87684a557b74d11505703965ab680056eee029cb Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 15 Feb 2024 11:40:12 +0100 Subject: [PATCH] add conditional --- roles/config-hosts/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/config-hosts/tasks/main.yaml b/roles/config-hosts/tasks/main.yaml index 7778ad7..be4c05b 100644 --- a/roles/config-hosts/tasks/main.yaml +++ b/roles/config-hosts/tasks/main.yaml @@ -1,3 +1,8 @@ + +- name: "[CONFIG HOSTS FILE] Comprobando si es necesario configurar hosts file " + meta: end_host + when: hosts_enabled is not defined or not hosts_enabled + # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - name: Replace old /etc/hosts with new /etc/hosts template: