Files
schleppe-pulumi/ansible/plays/ip_list.yml

7 lines
170 B
YAML

- hosts: all
tasks:
- name: Print IPv4 addresse and hostname for all hosts
debug:
msg: '{{ ansible_default_ipv4.address }} - {{ ansible_hostname }}'