Solution 1:
Hmm, if you need to get interface name, try:
- debug:
msg: "{{ ansible_interfaces | select('match','ens.*') | list | first }}"
Hmm, if you need to get interface name, try:
- debug:
msg: "{{ ansible_interfaces | select('match','ens.*') | list | first }}"