hostname gathering facts

This commit is contained in:
2026-05-12 17:06:26 +02:00
parent f0d9bdd6f8
commit fe6e91d8e4

View File

@@ -3,3 +3,9 @@
tasks:
- name: get server hostname
command: hostname
- name: mostrar IP del host
debug:
msg: "IP: {{ ansible_default_ipv4.address }}"
- name: mostrar hostname
debug:
msg: "Host: {{ ansible_hostname }}"