add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 11:40:12 +01:00
parent d5277c9f6b
commit 87684a557b
1 changed files with 5 additions and 0 deletions

View File

@ -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: