update hosts playbook

This commit is contained in:
Ruben Blanco 2024-02-14 18:21:46 +01:00
parent b0a2a716b6
commit 322d63a932
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@
tasks:
- name: "[CONFIG HOSTS FILE] Comprobando si es necesario configurar hosts file "
debug:
msg: "No es necesario configurar hosts file en la máquina"
when: hosts_enabled is not defined or not hosts_enabled
- name: "[CONFIG HOSTS FILE] Configure hosts file"
import_role:
name: config-hosts
when: hosts_enabled is defined and hosts_enabled