fix(show.yml): improve formatting of hostname display message for clarity
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Show hostname
|
- name: Show hostname
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Host: {{ ansible_facts.fqdn | split('.') | first }} FQDN: {{ ansible_facts.fqdn.split('.')[0] }}.{{ ansible_facts.fqdn.split('.')[1] | default('NONE') }}.{{
|
msg: >-
|
||||||
ansible_facts.fqdn.split('.')[2] | default('NONE') }}"
|
Host: {{ ansible_facts.fqdn | split('.') | first }} FQDN:
|
||||||
# msg: "Host: {{ ansible_facts.fqdn | split('.') | first }} FQDN: {{ ansible_facts.fqdn.split('.')[0] | join( '.') }} | {{ join ( ansible_facts.fqdn.split('.')[1] ) }}"
|
{{ ansible_facts.fqdn.split('.')[0] }}.{{ ansible_facts.fqdn.split('.')[1] | default('NONE') }}.{{ ansible_facts.fqdn.split('.')[2] | default('NONE') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user