change tag hostname by when var is defined

This commit is contained in:
Ruben Blanco 2023-10-16 09:07:26 +02:00
parent 6a5ae9f53b
commit db8cadee19
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
- name: change hostname
hostname:
name: "{{ hostname_name }}"
tags: set-hostname
when: hostname_name is defined
# Reconfigure locales - enable en_US-UTF8 and es_ES-UTF8
- name: reconfigure locales enable en_US-UTF8 and es_ES-UTF8