diff --git a/examples/004_services/playbooks/hostname.yml b/examples/004_services/playbooks/hostname.yml index a1a3ad6..47b77ae 100644 --- a/examples/004_services/playbooks/hostname.yml +++ b/examples/004_services/playbooks/hostname.yml @@ -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 }}" \ No newline at end of file