update playbook hostname

This commit is contained in:
Ruben Blanco 2024-02-14 18:19:50 +01:00
parent 8487a60498
commit b0a2a716b6
1 changed files with 6 additions and 0 deletions

View File

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