add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 11:38:05 +01:00
parent f70d257c3f
commit d5277c9f6b
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
# Configure HOSTNAME and HOSTS with new HOSTNAME
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG HOSTNAME] Comprobando si es necesario configurar hostname "
meta: end_host
when: hostname_enabled is not defined or not hostname_enabled
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Configure HOSTNAME /etc/hostname
- name: Set a hostname specifying strategy in /etc/hostname